MCPcopy Create free account
hub / github.com/pyload/pyload / parse_request

Method parse_request

module/lib/wsgiserver/__init__.py:301–310  ·  view source on GitHub ↗

Parse the next HTTP request start-line and message-headers.

(self)

Source from the content-addressed store, hash-verified

299 self.chunked_write = False
300
301 def parse_request(self):
302 """Parse the next HTTP request start-line and message-headers."""
303 self.rfile.maxlen = self.max_request_header_size
304 self.rfile.bytes_read = 0
305
306 try:
307 self._parse_request()
308 except MaxSizeExceeded:
309 self.simple_response("413 Request Entity Too Large")
310 return
311
312 def _parse_request(self):
313 # HTTP/1.1 connections are persistent by default. If a client

Callers 1

communicateMethod · 0.80

Calls 2

_parse_requestMethod · 0.95
simple_responseMethod · 0.95

Tested by

no test coverage detected