MCPcopy
hub / github.com/encode/httpx / echo_raw_headers

Function echo_raw_headers

tests/client/test_client.py:336–341  ·  view source on GitHub ↗
(request: httpx.Request)

Source from the content-addressed store, hash-verified

334
335
336def echo_raw_headers(request: httpx.Request) -> httpx.Response:
337 data = [
338 (name.decode("ascii"), value.decode("ascii"))
339 for name, value in request.headers.raw
340 ]
341 return httpx.Response(200, json=data)
342
343
344def test_raw_client_header():

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected