MCPcopy Create free account
hub / github.com/pallets/quart / encode_headers

Function encode_headers

src/quart/utils.py:97–98  ·  view source on GitHub ↗
(headers: Headers)

Source from the content-addressed store, hash-verified

95
96
97def encode_headers(headers: Headers) -> list[tuple[bytes, bytes]]:
98 return [(key.lower().encode(), value.encode()) for key, value in headers.items()]
99
100
101def decode_headers(headers: Iterable[tuple[bytes, bytes]]) -> Headers:

Callers 6

test_encode_headersFunction · 0.90
_send_responseMethod · 0.85
_send_push_promiseMethod · 0.85
accept_connectionMethod · 0.85
make_test_scopeFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_encode_headersFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…