MCPcopy
hub / github.com/encode/httpx / log_to_wsgi_log_buffer

Function log_to_wsgi_log_buffer

tests/test_wsgi.py:88–91  ·  view source on GitHub ↗
(environ, start_response)

Source from the content-addressed store, hash-verified

86
87
88def log_to_wsgi_log_buffer(environ, start_response):
89 print("test1", file=environ["wsgi.errors"])
90 environ["wsgi.errors"].write("test2")
91 return echo_body(environ, start_response)
92
93
94def test_wsgi():

Callers

nothing calls this directly

Calls 1

echo_bodyFunction · 0.70

Tested by

no test coverage detected