MCPcopy
hub / github.com/urllib3/urllib3 / validate_request

Function validate_request

test/test_ssltransport.py:52–57  ·  view source on GitHub ↗
(
    provided_request: bytearray, binary: typing.Literal[False, True] = True
)

Source from the content-addressed store, hash-verified

50
51
52def validate_request(
53 provided_request: bytearray, binary: typing.Literal[False, True] = True
54) -> None:
55 assert provided_request is not None
56 expected_request = sample_request(binary)
57 assert provided_request == expected_request
58
59
60@typing.overload

Callers 3

socket_handlerMethod · 0.85
shutdown_handlerMethod · 0.85
socket_handlerMethod · 0.85

Calls 1

sample_requestFunction · 0.85

Tested by

no test coverage detected