View Source hackney_headers_new (hackney v1.23.0)
Summary
Functions
append a new value to the list of value for the the header field if the key has not been recorded the list will be created with the value as the first item.
delete a field from headers.
create headers from a list
get the first value of an headers or return undefined
get the first value of an headers or return the default
is the header field exists or no
merge 2 headers objects. If a key is already existing in HEader1, it will be kept.
initialize an empty headers objecy
Parse a media type.
return the number of headers fields
store a list of headers. Replacing oldest
replace the content of the header field with the value or the list of values.
only store a value if the key exist.
transform headers to a binary that can be used to construct a request
convert headers to an iolist. Useful to send them over the wire.
convert headers to a list
Types
Functions
-spec from_list(headers_list()) -> headers().
-spec new() -> headers().
-spec new(headers_list() | headers()) -> headers().
-spec size(headers()) -> non_neg_integer().
-spec store(headers_list(), headers()) -> headers().
-spec to_list(headers()) -> headers_list().