MessageHeaders.setContentRange

void setContentRange(long start, long end, long totalLength)

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

classServer has built-in handling for range requests, and you do not normally need to call this function youself. See [soup.message_headers.MessageHeaders.getRanges] for more details.

Parameters

startthe start of the range
endthe end of the range
totalLengththe total length of the resource, or -1 if unknown