class documentation

class MultipartDecoder:

View In Hierarchy

Decodes a multipart message as bytes into Python events.

The part data is returned as available to allow the caller to save the data from memory to disk, if desired.

Method __init__ Undocumented
Method last​_newline Undocumented
Method next​_event Undocumented
Method receive​_data Undocumented
Instance Variable boundary Undocumented
Instance Variable boundary​_re Undocumented
Instance Variable buffer Undocumented
Instance Variable complete Undocumented
Instance Variable max​_form​_memory​_size Undocumented
Instance Variable preamble​_re Undocumented
Instance Variable state Undocumented
Method ​_parse​_headers Undocumented
def __init__(self, boundary, max_form_memory_size=None):

Undocumented

Parameters
boundary:bytesUndocumented
max​_form​_memory​_size:Optional[int]Undocumented
def last_newline(self):

Undocumented

Returns
intUndocumented
def next_event(self):

Undocumented

Returns
EventUndocumented
def receive_data(self, data):

Undocumented

Parameters
data:Optional[bytes]Undocumented
boundary =

Undocumented

boundary_re =

Undocumented

buffer =

Undocumented

complete: bool =

Undocumented

max_form_memory_size =

Undocumented

preamble_re =

Undocumented

state =

Undocumented

def _parse_headers(self, data):

Undocumented

Parameters
data:bytesUndocumented
Returns
HeadersUndocumented