httpcats.core
Httpcats_core
httpcats
httpcats.runtime
module Version = H1.Version
module Status = H2.Status
module Headers = H2.Headers
module Method = H2.Method
module Cookie : sig ... end
type request = {
meth : Method.t;
target : string;
headers : Headers.t;
}
type response = {
version : Version.t;
status : Status.t;
reason : string;
type error = [
| `V1 of H1.Client_connection.error
| `V2 of H2.Client_connection.error
| `Protocol of string
| `Msg of string
| `Exn of exn
]
type body =
| String of string
| 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