package naboris
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Simple http server
Install
dune-project
Dependency
Authors
Maintainers
Sources
0.1.3.tar.gz
md5=f7d1c959627f93fdcf9fd0c346edb9c9
sha512=344a03d18170368a3fedcc595f6cc103fe47449a77a9923ab58a7d20d8d291edfda624d27bbfd8dc05d9af33a797064efcbeb52a4f9ea57fa862ebd39b97cfa1
doc/naboris/Naboris/Req/index.html
Module Naboris.Req
Module for working with incoming requests.
val reqd : 'sessionData t -> Httpaf.Reqd.tGet HttpAf request descriptor.
val getHeader : string -> 'sessionData t -> string optionGet header from request. None if no matching header is found.
Get lwt promise of the body string from an http request.
val getSessionData : 'sessionData t -> 'sessionData optionExtracts 'sessionData from request.
Returns None if no session exists.
Sets 'sessionData onto a request.
val fromReqd :
Httpaf.Reqd.t ->
'sessionData SessionConfig.t option ->
string option ->
bool ->
Etag.strength option ->
'sessionData tIntended for internal use. Creates default req record.
val sidKey : 'sessionData t -> stringGet key for session id cookie
val maxAge : 'sessionData t -> intGet max age for session id cookies (in seconds)
val secret : 'sessionData t -> stringGet secret used to sign session id cookies.
val staticCacheControl : 'sessionData t -> string optionGet Cache-control header value for static requests based on ServerConfig.t.
val staticLastModified : 'sessionData t -> boolGet bool value where true signals the server to set Last-modified headers for static requests.
val responseEtag : 'sessionDate t -> Etag.strength optionGet option([`Strong | `Weak]) which is set by ServerConfig.t.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>