MCPcopy
hub / github.com/pallets/werkzeug / is_entity_header

Function is_entity_header

src/werkzeug/http.py:1200–1208  ·  view source on GitHub ↗

Check if a header is an entity header. .. versionadded:: 0.5 :param header: the header to test. :return: `True` if it's an entity header, `False` otherwise.

(header: str)

Source from the content-addressed store, hash-verified

1198
1199
1200def is_entity_header(header: str) -> bool:
1201 """Check if a header is an entity header.
1202
1203 .. versionadded:: 0.5
1204
1205 :param header: the header to test.
1206 :return: `True` if it's an entity header, `False` otherwise.
1207 """
1208 return header.lower() in _entity_headers
1209
1210
1211def is_hop_by_hop_header(header: str) -> bool:

Callers 2

remove_entity_headersFunction · 0.85
closeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected