package httpcats

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type error
val pp_error : error Fmt.t
module Method = H2.Method
module Headers = H2.Headers
module Status = H2.Status
type stop
val stop : unit -> stop
val switch : stop -> unit
type request = {
  1. meth : Method.t;
  2. target : string;
  3. scheme : string;
  4. headers : Headers.t;
}
type response = {
  1. status : Status.t;
  2. headers : Headers.t;
}
type body = [
  1. | `V1 of H1.Body.Writer.t
  2. | `V2 of H2.Body.Writer.t
]
type reqd = [
  1. | `V1 of H1.Reqd.t
  2. | `V2 of H2.Reqd.t
]
type error_handler = ?request:request -> error -> (Headers.t -> body) -> unit
type handler = [ `Tcp of Miou_unix.file_descr | `Tls of Tls_miou_unix.t ] -> reqd -> unit
val clear : ?stop:stop -> ?config:H1.Config.t -> ?backlog:int -> ?error_handler:error_handler -> handler:handler -> Unix.sockaddr -> unit
val 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
OCaml

Innovation. Community. Security.