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.2.1.tbz
sha256=a40e9e88cd5555f5398c34cb2bff9837a053f8c6215c1aeb3269032a74a41cd8
sha512=b6f3bf1ba669e88c80adf779c9186513b0427377f1ca0bb7f896a99241373ef2cc3f59ff786fb7fc99e7bf79d92e2fad1fa52e3172c3e30a37b97cb405e2ac43

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 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 -> reqd -> unit