package b0
Software construction and deployment kit
Install
Dune Dependency
Authors
Maintainers
Sources
b0-0.0.4.tbz
sha512=665735c8b7a8674201be765bdd676a18d1e38eff35de9d44c3dc15e2bfed2247e8963c9a32ae62d9ca2d6cd1edebd849aac29fdd5a846c14a30feea3edfc0601
doc/b0_b00_kit/B00_http/Http/index.html
Module B00_http.Http
HTTP methods, requests and responses.
HTTP methods and headers
val meth_to_string : meth -> string
meth_to_string m
is a string representation of m
.
The type for HTTP headers. List of header names (without the :
) tupled with their value.
HTTP requests
req uri m ~headers ~body
is a request on uri
with method m
, headers headers
(defaults to []
) and body body
(defaults to ""
).
val req_body : req -> string
req_body r
is r
's body.
HTTP responses
resp status ~headers ~body
is a response with status status
, headers headers
(defaults to []
) and body body
(defaults to ""
)
val resp_status : resp -> int
resp_status r
is the HTTP response status.
val resp_body : resp -> string
resp_body r
is the HTTP response body.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page