= 1024" x-on:close-sidebar="sidebar=window.innerWidth >= 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val headers : req -> HTTP.headers
headers r
is r
's information. Initially empty it can be used be services and layers to store and share data.
val with_headers : req -> HTTP.headers -> req
with_headers req hs
is req
with headers hs
.
val v :
?version:HTTP.version ->
HTTP.meth ->
path:HTTP.path ->
?query:(string * string list) list ->
HTTP.headers ->
body ->
req
v meth ~path headers body
is an HTTP request with the given components. query
defaults to None
.