Method
SoupMessageHeadersget_content_range
Declaration [src]
gboolean
soup_message_headers_get_content_range (
SoupMessageHeaders* hdrs,
goffset* start,
goffset* end,
goffset* total_length
)
Description [src]
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.
On success start and end are always non-negative, end is not before
start, and end is within total_length if that was given, so they can be
used directly as offsets into the response body. The out parameters are
left untouched if the header cannot be parsed.
Parameters
start-
Type:
goffset*Return value for the start of the range.
The argument will be set by the function. end-
Type:
goffset*Return value for the end of the range.
The argument will be set by the function. total_length-
Type:
goffset*Return value for the total length of the resource, or
NULLif you don’t care.The argument will be set by the function. The argument can be NULL.