MCPcopy
hub / github.com/urllib3/urllib3 / validate_response

Function validate_response

test/test_ssltransport.py:77–82  ·  view source on GitHub ↗
(
    provided_response: bytes | bytearray | str, binary: bool = True
)

Source from the content-addressed store, hash-verified

75
76
77def validate_response(
78 provided_response: bytes | bytearray | str, binary: bool = True
79) -> None:
80 assert provided_response is not None
81 expected_response = sample_response(binary)
82 assert provided_response == expected_response
83
84
85def validate_peercert(ssl_socket: SSLTransport) -> None:

Calls 1

sample_responseFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…