MessageHeaders.setContentRange

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.)

<note><para> #SoupServer has built-in handling for range requests, and you do not normally need to call this function youself. See soup_message_headers_get_ranges() for more details. </para></note>

class MessageHeaders
void
setContentRange
(
long start
,
long end
,)

Parameters

start long

the start of the range

end long

the end of the range

totalLength long

the total length of the resource, or -1 if unknown

Meta

Since

2.26