Module bookish_spork_request

Data Types

request()

abstract datatype: request()

Function Index

body/1request body.
content_length/1Content-Length header value as intger.
headers/1http headers map.
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

headers/1

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

http headers map. Header names are normalized and lowercased

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