package httpcats

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

httpcats-0.3.4.tbz
sha256=9581d7167dc4f9cee58ee5daaa9b734561504a48668169ebef5c6ed5b0031366
sha512=d7947b405fde5e3cec9d2a8258dbc3545339389afc55307ad180ea65b33899cc319f328b9bd492eb9f467e9315df5c75846e95778077ef54bb774f20d10e7496

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