def initialize(self, content_type: str): self._parser = Parser(self, content_type.encode()) self.form = self.app.Form() self.files = self.app.Files() return self.form, self.files
def __init__(self, boundary): self.parts = [] self.parser = Parser(self, boundary) self.on_body_begin_called = 0 self.on_body_complete_called = 0 self.on_headers_complete_called = 0
def __init__(self, content_type: str): self._parser = Parser(self, content_type.encode()) self.form = Form() self.files = Files()