package dream-httpaf
Internal: shared http/af stack for Dream (server) and Hyper (client)
Install
Dune Dependency
Authors
Maintainers
Sources
dream-1.0.0-alpha6.tar.gz
sha256=8d3b6344c0e175aca628b3d5bb8ee58265e8c1074fc2d40d63f136fef83daf90
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)"
>