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

Function start_response

src/werkzeug/test.py:1252–1262  ·  view source on GitHub ↗
(status, headers, exc_info=None)

Source from the content-addressed store, hash-verified

1250 buffer: list[bytes] = []
1251
1252 def start_response(status, headers, exc_info=None): # type: ignore
1253 nonlocal response
1254
1255 if exc_info:
1256 try:
1257 raise exc_info[1].with_traceback(exc_info[2])
1258 finally:
1259 exc_info = None
1260
1261 response = (status, headers)
1262 return buffer.append
1263
1264 app_rv = app(environ, start_response)
1265 close_func = getattr(app_rv, "close", None)

Callers 15

__call__Method · 0.85
applicationMethod · 0.85
__call__Method · 0.85
test_appFunction · 0.85
simple_appFunction · 0.85
yielding_appFunction · 0.85
late_start_responseFunction · 0.85
depends_on_closeFunction · 0.85
barFunction · 0.85
wsgi_applicationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected