Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Module for working with incoming requests.
val reqd : 'sessionData t -> Httpaf.Reqd.t
Get HttpAf request descriptor.
val getHeader : string -> 'sessionData t -> string option
Get header from request. None
if no matching header is found.
val getBody : 'sessionData t -> string Lwt.t
Get lwt promise of the body string from an http request.
val getSessionData : 'sessionData t -> 'sessionData option
Extracts 'sessionData
from request.
Returns None
if no session exists.
Sets 'sessionData
onto a request.
val fromReqd : Httpaf.Reqd.t -> 'sessionData t
Intended for internal use. Creates default req record.