(headers: str)
| 47 | |
| 48 | |
| 49 | def headers_parse_simple(headers: str) -> HTTPHeaders: |
| 50 | h = HTTPHeaders() |
| 51 | for line in headers.split("\n"): |
| 52 | if line.endswith("\r"): |
| 53 | line = line[:-1] |
| 54 | if line: |
| 55 | h.parse_line(line) |
| 56 | return h |
| 57 | |
| 58 | |
| 59 | def run_headers_split(): |
no test coverage detected