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.2.1.tbz
sha256=a40e9e88cd5555f5398c34cb2bff9837a053f8c6215c1aeb3269032a74a41cd8
sha512=b6f3bf1ba669e88c80adf779c9186513b0427377f1ca0bb7f896a99241373ef2cc3f59ff786fb7fc99e7bf79d92e2fad1fa52e3172c3e30a37b97cb405e2ac43
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 48module 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 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 -> reqd -> unit end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>