MCPcopy
hub / github.com/django/django / has_header

Method has_header

django/http/response.py:206–208  ·  view source on GitHub ↗

Case-insensitive check for a header.

(self, header)

Source from the content-addressed store, hash-verified

204 return self.headers[header]
205
206 def has_header(self, header):
207 """Case-insensitive check for a header."""
208 return header in self.headers
209
210 __contains__ = has_header
211

Callers 15

get_max_ageFunction · 0.80
patch_response_headersFunction · 0.80
patch_vary_headersFunction · 0.80
has_vary_headerFunction · 0.80
learn_cache_keyFunction · 0.80
process_responseMethod · 0.80
process_responseMethod · 0.80
process_responseMethod · 0.80
_post_process_requestFunction · 0.80

Calls

no outgoing calls