Path 1: 491 calls (1.0)

dict (491)

RequestContext (491)

1def request_context(self, environ: dict) -> RequestContext:
2        """Create a :class:`~flask.ctx.RequestContext` representing a
3        WSGI environment. Use a ``with`` block to push the context,
4        which will make :data:`request` point at this request.
5
6        See :doc:`/reqcontext`.
7
8        Typically you should not call this from your own code. A request
9        context is automatically pushed by the :meth:`wsgi_app` when
10        handling a request. Use :meth:`test_request_context` to create
11        an environment and context instead of this method.
12
13        :param environ: a WSGI environment
14        """
15        return RequestContext(self, environ)