package httpcats
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
A simple HTTP client / server using h1, h2, and miou
Install
dune-project
Dependency
Authors
Maintainers
Sources
httpcats-0.3.3.tbz
sha256=e07ecc6ed9ae9dbf5ae24f7ffcc439357d37e3efe2748c4d4e0dcad732ea3712
sha512=1a5a0f288a812ae60fecd9a693aaeb44598fb6bbf33dd5f1687662da79dc2b5c6a6c45cc37f5d031c126816356fecf0ef04372e85f0813e1589ee16bbd19fb44
doc/src/httpcats.core/httpcats_core.ml.html
Source file httpcats_core.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49module Version = H1.Version module Status = H2.Status module Headers = H2.Headers module Method = H2.Method module Cookie = Cookie type request = { meth: Method.t; target: string; headers: Headers.t } type response = { version: Version.t ; status: Status.t ; reason: string ; headers: Headers.t } type error = [ `V1 of H1.Client_connection.error | `V2 of H2.Client_connection.error | `Protocol of string | `Msg of string | `Exn of exn ] type body = String of string | Stream of string Seq.t type meta = (Ipaddr.t * int) * Tls.Core.epoch_data option type 'a handler = meta -> request -> response -> 'a -> string option -> 'a module Server = struct type error = [ `V1 of H1.Server_connection.error | `V2 of H2.Server_connection.error | `Protocol of string ] type request = { meth: Method.t ; target: string ; scheme: string ; headers: Headers.t } type response = { status: Status.t; headers: Headers.t } type body = [ `V1 of H1.Body.Writer.t | `V2 of H2.Body.Writer.t ] type conn = [ `H1 of H1.Server_connection.t | `H2 of H2.Server_connection.t ] type reqd = [ `V1 of H1.Reqd.t | `V2 of H2.Reqd.t ] type error_handler = [ `V1 | `V2 ] -> ?request:request -> error -> (Headers.t -> body) -> unit type 'a handler = 'a -> conn -> reqd -> unit end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>