MCPcopy Index your code
hub / github.com/python-websockets/websockets / InvalidHeaderFormat

Class InvalidHeaderFormat

src/websockets/exceptions.py:279–288  ·  view source on GitHub ↗

Raised when an HTTP header cannot be parsed. The format of the header doesn't match the grammar for that header.

Source from the content-addressed store, hash-verified

277
278
279class 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
291class InvalidHeaderValue(InvalidHeader):

Callers 9

parse_tokenFunction · 0.85
parse_quoted_stringFunction · 0.85
parse_listFunction · 0.85
parse_upgrade_protocolFunction · 0.85
parse_token68Function · 0.85
parse_endFunction · 0.85
test_strMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_strMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…