(request: httpx.Request)
| 334 | |
| 335 | |
| 336 | def 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 | |
| 344 | def test_raw_client_header(): |