package httpcats

  1. Overview
  2. Docs
A simple HTTP client / server using h1, h2, and miou

Install

dune-project
 Dependency

Authors

Maintainers

Sources

httpcats-0.3.1.tbz
sha256=e41ca6a32252e49ca44e749e7b41e148acdb1e46fc8fa08eb98eed66d1831a1d
sha512=7e736d5c0ecc2f1c63c39ce39b322cd88b85c9d50eda2021e20043b0c855e7d61107605434e14f7186d4b8488f8c1e1048058bce5c0b1195d5bb16b84999107c

doc/httpcats.core/Httpcats_core/Server/index.html

Module Httpcats_core.ServerSource

Sourcetype error = [
  1. | `V1 of H1.Server_connection.error
  2. | `V2 of H2.Server_connection.error
  3. | `Protocol of string
]
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 conn = [
  1. | `H1 of H1.Server_connection.t
  2. | `H2 of H2.Server_connection.t
]
Sourcetype reqd = [
  1. | `V1 of H1.Reqd.t
  2. | `V2 of H2.Reqd.t
]
Sourcetype error_handler = [ `V1 | `V2 ] -> ?request:request -> error -> (Headers.t -> body) -> unit
Sourcetype 'a handler = 'a -> conn -> reqd -> unit