Module Httpcats_core

module Version = H1.Version
module Status = H2.Status
module Headers = H2.Headers
module Method = H2.Method
type request = {
  1. meth : Method.t;
  2. target : string;
  3. headers : Headers.t;
}
type response = {
  1. version : Version.t;
  2. status : Status.t;
  3. reason : string;
  4. headers : Headers.t;
}
type error = [
  1. | `V1 of H1.Client_connection.error
  2. | `V2 of H2.Client_connection.error
  3. | `Protocol of string
  4. | `Msg of string
  5. | `Exn of exn
]
type body =
  1. | String of string
  2. | Stream of string Seq.t
type meta = (Ipaddr.t * int) * Tls.Core.epoch_data option
type 'a handler = meta -> request -> response -> 'a -> string option -> 'a
module Server : sig ... end