hackney_headers (hackney v1.24.0)
View Sourcemodule to manipulate HTTP headers
Summary
Functions
Parse a content disposition.
Parse a content type.
Delete the header corresponding to key if it is present.
fold the list of headers
get the value of the header
join value and params in a binary
Insert the pair into the headers, merging with any pre-existing key. A merge is done with Value = V0 ++ ", " ++ V1.
same as insert/3
but allows to add params to the header value.
Create a binary header
initialise an header dict
Semantically parse headers.
store the pair into the headers, replacing any pre-existing key.
return all the headers as a binary that can be sent over the wire.
extend the headers with a new list of {Key, Value}
pair.
Types
Functions
-spec content_disposition(binary()) -> disposition().
Parse a content disposition.
Parse a content type.
We lowercase the charset header as we know it's case insensitive.
Delete the header corresponding to key if it is present.
fold the list of headers
get the value of the header
join value and params in a binary
Insert the pair into the headers, merging with any pre-existing key. A merge is done with Value = V0 ++ ", " ++ V1.
same as insert/3
but allows to add params to the header value.
Create a binary header
-spec new() -> headers().
initialise an header dict
Semantically parse headers.
When the value isn't found, a proper default value for the type returned is used as a return value.
See also: parse/3.
store the pair into the headers, replacing any pre-existing key.
return all the headers as a binary that can be sent over the wire.
extend the headers with a new list of {Key, Value}
pair.