ContentRange

Represents the Content-Range header

This header is start-stop/length, where stop and length can be * (represented as None in the attributes).


Methods

f __init__(self, start, stop, length) ...

f __iter__(self) ...

Mostly so you can unpack this, like:

start, stop, length = res.content_range

f parse(cls, value) ...

Parse the header. May return None if it cannot parse.

See the source for more information.