MCPcopy Create free account
hub / github.com/tensorflow/tensorboard / create_headers

Function create_headers

tensorboard/backend/security_validator_test.py:34–45  ·  view source on GitHub ↗
(
    content_type="application/json",
    x_content_type_options="nosniff",
    content_security_policy="",
)

Source from the content-addressed store, hash-verified

32
33
34def create_headers(
35 content_type="application/json",
36 x_content_type_options="nosniff",
37 content_security_policy="",
38):
39 return Headers(
40 {
41 "Content-Type": content_type,
42 "X-Content-Type-Options": x_content_type_options,
43 "Content-Security-Policy": content_security_policy,
44 }
45 )
46
47
48class SecurityValidatorMiddlewareTest(tb_test.TestCase):

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…