Sets our main struct and passes it to the parent class.
Creates a #SoupMessageHeaders. (#SoupMessage does this automatically for its own headers. You would only need to use this method if you are manually parsing or generating message headers.)
Appends a new header with name @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 soup_message_headers_replace().)
Removes all the headers listed in the Connection header.
Clears @hdrs.
Calls @func once for each header value in @hdrs.
Frees @hdrs.
Frees the array of ranges returned from soup_message_headers_get_ranges().
Gets the value of header @name in @hdrs.
Looks up the "Content-Disposition" header in @hdrs, parses it, and returns its value in *@disposition and *@params. @params can be %NULL if you are only interested in the disposition-type.
Gets the message body length that @hdrs declare. This will only be non-0 if soup_message_headers_get_encoding() returns %SOUP_ENCODING_CONTENT_LENGTH.
Parses @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.
Looks up the "Content-Type" header in @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.
Gets the message body encoding that @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.
Gets the expectations declared by @hdrs's "Expect" header. Currently this will either be %SOUP_EXPECTATION_CONTINUE or %SOUP_EXPECTATION_UNRECOGNIZED.
Gets the type of headers.
Gets the value of header @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 soup_message_headers_get_one().
Get the main Gtk struct
Gets the value of header @name in @hdrs. Use this for headers whose values are <emphasis>not</emphasis> comma-delimited lists, and which therefore can only appear at most once in the headers. For list-valued headers, use soup_message_headers_get_list().
Parses @hdrs's Range header and returns an array of the requested byte ranges. The returned array must be freed with soup_message_headers_free_ranges().
the main Gtk struct as a void*
Checks whether the list-valued header @name is present in @hdrs, and contains a case-insensitive match for @token.
Checks whether the header @name is present in @hdrs and is (case-insensitively) equal to @value.
Removes @name from @hdrs. If there are multiple values for @name, they are all removed.
Replaces the value of the header @name in @hdrs with @value. (See also soup_message_headers_append().)
Sets the "Content-Disposition" header in @hdrs to @disposition, optionally with additional parameters specified in @params.
Sets the message body length that @hdrs will declare, and sets @hdrs's encoding to %SOUP_ENCODING_CONTENT_LENGTH.
Sets @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.)
Sets the "Content-Type" header in @hdrs to @content_type, optionally with additional parameters specified in @params.
Sets the message body encoding that @hdrs will declare. In particular, you should use this if you are going to send a request or response in chunked encoding.
Sets @hdrs's "Expect" header according to @expectations.
Sets @hdrs's Range header to request the indicated range. @start and @end are interpreted as in a #SoupRange.
Sets @hdrs's Range header to request the indicated ranges. (If you only want to request a single range, you can use soup_message_headers_set_range().)
the main Gtk struct
#SoupMessageHeaders represents the HTTP message headers associated with a request or response.