response() = t() | non_neg_integer() | {non_neg_integer(), map(), binary()} | {non_neg_integer(), list(), binary()} | nonempty_list()
abstract datatype: t()
new/1 | Constructs a response data structure. |
write_str/2 |
new(Response::response()) -> t()
Constructs a response data structure
Arg can be one of
{Status, Headers, Body}
[Status, Headers, Body]
Headers may be map or proplist
Example:
bookish_spork_response:new([200, #{}, <<"Hello">>])
write_str(Response::t(), Now::calendar:datetime()) -> binary()
Generated by EDoc