class documentation

class ContentRange: (source)

View In Hierarchy

Represents the content range header. .. versionadded:: 0.7

Method __bool__ Undocumented
Method __init__ Undocumented
Method __repr__ Undocumented
Method __str__ Undocumented
Method set Simple method to update the ranges.
Method to_header Undocumented
Method unset Sets the units to `None` which indicates that the header should no longer be used.
Class Variable length Undocumented
Class Variable start Undocumented
Class Variable stop Undocumented
Class Variable units Undocumented
Instance Variable on_update Undocumented
Instance Variable _length Undocumented
Instance Variable _start Undocumented
Instance Variable _stop Undocumented
Instance Variable _units Undocumented
def __bool__(self): (source)

Undocumented

def __init__(self, units, start, stop, length=None, on_update=None): (source)

Undocumented

def __repr__(self): (source)

Undocumented

def __str__(self): (source)

Undocumented

def set(self, start, stop, length=None, units='bytes'): (source)

Simple method to update the ranges.

def to_header(self): (source)

Undocumented

def unset(self): (source)

Sets the units to `None` which indicates that the header should no longer be used.

Undocumented

Undocumented

Undocumented

Undocumented

on_update = (source)

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented