MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / start_response

Method start_response

21-async/mojifinder/bottle.py:679–687  ·  view source on GitHub ↗
(status, headerlist, exc_info=None)

Source from the content-addressed store, hash-verified

677 request.path_shift(path_depth)
678 rs = HTTPResponse([])
679 def start_response(status, headerlist, exc_info=None):
680 if exc_info:
681 try:
682 _raise(*exc_info)
683 finally:
684 exc_info = None
685 rs.status = status
686 for name, value in headerlist: rs.add_header(name, value)
687 return rs.body.append
688 body = app(request.environ, start_response)
689 if body and rs.body: body = itertools.chain(rs.body, body)
690 rs.body = body or rs.body

Callers

nothing calls this directly

Calls 2

_raiseFunction · 0.85
add_headerMethod · 0.80

Tested by

no test coverage detected