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

Method to_header

src/werkzeug/datastructures/csp.py:89–93  ·  view source on GitHub ↗

Convert the stored values into a cache control header.

(self)

Source from the content-addressed store, hash-verified

87 del self[key]
88
89 def to_header(self) -> str:
90 """Convert the stored values into a cache control header."""
91 from ..http import dump_csp_header
92
93 return dump_csp_header(self)
94
95 def __str__(self) -> str:
96 return self.to_header()

Callers 3

__str__Method · 0.95
test_constructMethod · 0.95
test_propertiesMethod · 0.95

Calls 1

dump_csp_headerFunction · 0.85

Tested by 2

test_constructMethod · 0.76
test_propertiesMethod · 0.76