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.0.tbz
sha256=ff77d72ec8a294632e99757d1ae1a96073e6fb282d1c0e1e514b47b19976959d
sha512=0efc177c18cc74a8e24e6405331f716aeb780b528176b15c64b1e698cab0113cc25e30e0c9a075b51c1eb780c844734c8c930f9d18e351e73706d9c3d3738b85

doc/httpcats.core/Httpcats_core/index.html

Module Httpcats_coreSource

module Version = H1.Version
Sourcemodule Status = H2.Status
Sourcemodule Headers = H2.Headers
module Method = H2.Method
Sourcetype request = {
  1. meth : Method.t;
  2. target : string;
  3. headers : Headers.t;
}
Sourcetype response = {
  1. version : Version.t;
  2. status : Status.t;
  3. reason : string;
  4. headers : Headers.t;
}
Sourcetype error = [
  1. | `V1 of H1.Client_connection.error
  2. | `V2 of H2.Client_connection.error
  3. | `Protocol of string
  4. | `Msg of string
  5. | `Exn of exn
]
Sourcetype body =
  1. | String of string
  2. | Stream of string Seq.t
Sourcetype meta = (Ipaddr.t * int) * Tls.Core.epoch_data option
Sourcetype 'a handler = meta -> request -> response -> 'a -> string option -> 'a
Sourcemodule Server : sig ... end