示例#1
0
 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
示例#2
0
 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
示例#3
0
 def __init__(self, content_type: str):
     self._parser = Parser(self, content_type.encode())
     self.form = Form()
     self.files = Files()