package dream-httpaf
Internal: shared http/af stack for Dream (server) and Hyper (client)
Install
Dune Dependency
Authors
Maintainers
Sources
dream-1.0.0-alpha5.tar.gz
sha256=05bc7f6aff94893c151f3a5bcdee3328920c69b3763fac49ba27348dc7745901
md5=de6f6908ae899c9e85f2c751a0263932
doc/dream-httpaf.dream-httpaf_/Dream_httpaf_/Respd/index.html
Module Dream_httpaf_.Respd
Source
Source
type error = [
| `Malformed_response of string
| `Invalid_response_body_length of Response.t
| `Exn of exn
]
Source
type t = {
request : Request.t;
request_body : Body.Writer.t;
response_handler : Response.t -> Body.Reader.t -> unit;
error_handler : error -> unit;
mutable error_code : [ `Ok | error ];
writer : Writer.t;
mutable state : Request_state.t;
mutable persistent : bool;
}
Source
val create :
(error -> unit) ->
Request.t ->
Body.Writer.t ->
Writer.t ->
(Response.t -> Body.Reader.t -> unit) ->
t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>