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

Function parse_end

src/websockets/headers.py:518–524  ·  view source on GitHub ↗

Check that parsing reached the end of header.

(header: str, pos: int, header_name: str)

Source from the content-addressed store, hash-verified

516
517
518def parse_end(header: str, pos: int, header_name: str) -> None:
519 """
520 Check that parsing reached the end of header.
521
522 """
523 if pos < len(header):
524 raise InvalidHeaderFormat(header_name, "trailing data", header, pos)
525
526
527def parse_authorization_basic(header: str) -> tuple[str, str]:

Callers 1

Calls 1

InvalidHeaderFormatClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…