Module bookish_spork_request

Data Types

request()

abstract datatype: request()

Function Index

body/1request body.
content_length/1Content-Length header value as intger.
header/2Returns a particular header from request.
headers/1http headers map.
is_keepalive/1tells you if the request is keepalive or not https://tools.ietf.org/html/rfc6223
method/1http verb: 'GET', 'POST','PUT', 'DELETE', 'OPTIONS', ...
uri/1path with query string.
version/1http protocol version tuple.

Function Details

body/1

body(Request::request()) -> binary()

request body

content_length/1

content_length(Request::request()) -> integer()

Content-Length header value as intger

header/2

header(Request::request(), HeaderName::string()) -> string() | undefined

Returns a particular header from request. Header name is lowerced

headers/1

headers(Request::request()) -> map()

http headers map. Header names are normalized and lowercased

is_keepalive/1

is_keepalive(Request::request()) -> boolean()

tells you if the request is keepalive or not https://tools.ietf.org/html/rfc6223

method/1

method(Request::request()) -> atom()

http verb: 'GET', 'POST','PUT', 'DELETE', 'OPTIONS', ...

uri/1

uri(Request::request()) -> string()

path with query string

version/1

version(Request::request()) -> string() | undefined

http protocol version tuple. Most often would be {1, 1}


Generated by EDoc