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-h2/Dream_h2/H2/Response/index.html
Module H2.Response
Source
Response
A server-generated message to a Request.t
.
create ?headers status
creates an HTTP response with the given parameters. Unlike the Response
type in http/af, h2 does not define a way for responses to carry reason phrases or protocol version.
See RFC7540§8.1.2.4 for more details.
Source
val body_length :
request_method:Method.standard ->
t ->
[ `Error of [ `Bad_request ] | `Fixed of int64 | `Unknown ]
body_length ~request_method t
is the length of the message body accompanying t
assuming it is a response to a request whose method was request_method
.
See RFC7230§3.3.3 for more details.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>