package httpcats

  1. Overview
  2. Docs

Module Httpcats.ClientSource

Sourcetype config = [
  1. | `V1 of H1.Config.t
  2. | `V2 of H2.Config.t
]
Sourcetype flow = [
  1. | `Tls of Tls_miou_unix.t
  2. | `Tcp of Miou_unix.file_descr
]
Sourcetype request = [
  1. | `V1 of H1.Request.t
  2. | `V2 of H2.Request.t
]
Sourcetype response = [
  1. | `V1 of H1.Response.t
  2. | `V2 of H2.Response.t
]
Sourcetype error = [
  1. | `V1 of H1.Client_connection.error
  2. | `V2 of H2.Client_connection.error
  3. | `Protocol of string
  4. | `Exn of exn
]
Sourceval pp_error : error Fmt.t
Sourcetype ('resp, 'body) version =
  1. | V1 : (H1.Response.t, H1.Body.Writer.t) version
  2. | V2 : (H2.Response.t, H2.Body.Writer.t) version
Sourceexception Error of error
Sourcetype 'acc process =
  1. | Process : {
    1. version : ('resp, 'body) version;
    2. acc : 'acc ref;
    3. response : 'resp Miou.Computation.t;
    4. body : 'body;
    5. process : unit Miou.t;
    } -> 'acc process
Sourceval run : f:(response -> 'acc -> string -> 'acc) -> 'acc -> config -> flow -> request -> 'acc process
OCaml

Innovation. Community. Security.