Parse the next HTTP request start-line and message-headers.
(self)
| 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 |
no test coverage detected