class documentation

class ContentRange:

View In Hierarchy

Represents the content range header.

New in version 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):

Undocumented

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

Undocumented

def __repr__(self):

Undocumented

def __str__(self):

Undocumented

def set(self, start, stop, length=None, units='bytes'):
Simple method to update the ranges.
def to_header(self):

Undocumented

def unset(self):
Sets the units to None which indicates that the header should no longer be used.
length =

Undocumented

start =

Undocumented

stop =

Undocumented

units =

Undocumented

on_update =

Undocumented

_length =

Undocumented

_start =

Undocumented

_stop =

Undocumented

_units =

Undocumented