set_content_range


Description:

public void set_content_range (int64 start, int64 end, int64 total_length)

Sets this'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.)

[class@Server] has built-in handling for range requests, and you do not normally need to call this function youself. See [ [email protected]_ranges] for more details.

Parameters:

this

a MessageHeaders

start

the start of the range

end

the end of the range

total_length

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




2022 vala-language.org