The HTTP message headers associated with a request or response.
name and value value to hdrs. (If
there is an existing header with name name, then this creates a second one, which is only allowed for list-valued
headers; see also replace.)
hdrs.
func once for each header value in hdrs.
hdrs.
name in hdrs.
hdrs, parses it, and returns its value in
*@disposition and *@params. params can be null if you are only interested in the disposition-type.
hdrs declare. This will only be non-0 if
get_encoding returns
CONTENT_LENGTH.
hdrs's Content-Range header and returns it in start, end,
and total_length. If the total length field in the header was specified as "*", then total_length will be
set to -1.
hdrs, parses it, and returns its value in
*@content_type and *@params. params can be null if you are only interested in the content type itself.
hdrs declare. This may not always correspond to the
encoding used on the wire; eg, a HEAD response may declare a Content-Length or Transfer-Encoding, but it will never actually include a
body.
hdrs's "Expect" header. Currently this will either be
CONTINUE or
UNRECOGNIZED.
name in hdrs. Use this for headers whose values are
comma-delimited lists, and which are therefore allowed to appear multiple times in the headers. For non-list-valued headers, use
get_one.
name in hdrs. Use this for headers whose values are
not comma-delimited lists, and which therefore can only appear at most once in the headers. For list-valued headers, use
get_list.
hdrs's Range header and returns an array of the requested byte ranges. The returned
array must be freed with free_ranges.
name from hdrs. If there are multiple values for name,
they are all removed.
name in hdrs with value. (See
also append.)
hdrs to disposition, optionally with
additional parameters specified in params.
hdrs will declare, and sets hdrs's encoding
to CONTENT_LENGTH.
hdrs's Content-Range header according to the given values. (Note that
total_length is the total length of the entire resource that this is a range of, not simply end - start
+ 1.)
hdrs to content_type, optionally with
additional parameters specified in params.
hdrs will declare. In particular, you should use this
if you are going to send a request or response in chunked encoding.
hdrs's "Expect" header according to expectations.
hdrs's Range header to request the indicated range. start and end
are interpreted as in a Range.
hdrs's Range header to request the indicated ranges. (If you only want to request a
single range, you can use set_range.)
