Raised when an HTTP header cannot be parsed. The format of the header doesn't match the grammar for that header.
| 277 | |
| 278 | |
| 279 | class InvalidHeaderFormat(InvalidHeader): |
| 280 | """ |
| 281 | Raised when an HTTP header cannot be parsed. |
| 282 | |
| 283 | The format of the header doesn't match the grammar for that header. |
| 284 | |
| 285 | """ |
| 286 | |
| 287 | def __init__(self, name: str, error: str, header: str, pos: int) -> None: |
| 288 | super().__init__(name, f"{error} at {pos} in {header}") |
| 289 | |
| 290 | |
| 291 | class InvalidHeaderValue(InvalidHeader): |
no outgoing calls
searching dependent graphs…