package httpcats

  1. Overview
  2. Docs

Module Httpcats.ServerSource

Sourcetype error
Sourceval pp_error : error Fmt.t
module Method = H2.Method
Sourcemodule Headers = H2.Headers
Sourcemodule Status = H2.Status
Sourcetype stop
Sourceval stop : unit -> stop
Sourceval switch : stop -> unit
Sourcetype request = {
  1. meth : Method.t;
  2. target : string;
  3. scheme : string;
  4. headers : Headers.t;
}
Sourcetype response = {
  1. status : Status.t;
  2. headers : Headers.t;
}
Sourcetype body = [
  1. | `V1 of H1.Body.Writer.t
  2. | `V2 of H2.Body.Writer.t
]
Sourcetype reqd = [
  1. | `V1 of H1.Reqd.t
  2. | `V2 of H2.Reqd.t
]
Sourcetype error_handler = ?request:request -> error -> (Headers.t -> body) -> unit
Sourcetype handler = [ `Tcp of Miou_unix.file_descr | `Tls of Tls_miou_unix.t ] -> reqd -> unit
Sourceval clear : ?stop:stop -> ?config:H1.Config.t -> ?backlog:int -> ?error_handler:error_handler -> handler:handler -> Unix.sockaddr -> unit
Sourceval with_tls : ?stop:stop -> ?config: [ `Both of H1.Config.t * H2.Config.t | `HTTP_1_1 of H1.Config.t | `H2 of H2.Config.t ] -> ?backlog:int -> ?error_handler:error_handler -> Tls.Config.server -> handler:handler -> Unix.sockaddr -> unit