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

Function no_response_headers_app

tests/test_test.py:896–900  ·  view source on GitHub ↗

A WSGI application which returns a response with no headers.

(environ, start_response)

Source from the content-addressed store, hash-verified

894
895
896def no_response_headers_app(environ, start_response):
897 """A WSGI application which returns a response with no headers."""
898 response = Response("Response")
899 response.headers.clear()
900 return response(environ, start_response)
901
902
903def test_no_content_type_header_addition():

Callers

nothing calls this directly

Calls 2

ResponseClass · 0.90
clearMethod · 0.45

Tested by

no test coverage detected