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

Method __call__

src/werkzeug/wrappers/response.py:566–578  ·  view source on GitHub ↗

Process this response as WSGI application. :param environ: the WSGI environment. :param start_response: the response callable provided by the WSGI server. :return: an application iterator

(
        self, environ: WSGIEnvironment, start_response: StartResponse
    )

Source from the content-addressed store, hash-verified

564 return app_iter, self.status, headers.to_wsgi_list()
565
566 def __call__(
567 self, environ: WSGIEnvironment, start_response: StartResponse
568 ) -> t.Iterable[bytes]:
569 """Process this response as WSGI application.
570
571 :param environ: the WSGI environment.
572 :param start_response: the response callable provided by the WSGI
573 server.
574 :return: an application iterator
575 """
576 app_iter, status, headers = self.get_wsgi_response(environ)
577 start_response(status, headers)
578 return app_iter
579
580 # JSON
581

Callers

nothing calls this directly

Calls 2

get_wsgi_responseMethod · 0.95
start_responseFunction · 0.85

Tested by

no test coverage detected