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

Class LocalRequest

21-async/mojifinder/bottle.py:1677–1684  ·  view source on GitHub ↗

A thread-local subclass of :class:`BaseRequest` with a different set of attributes for each thread. There is usually only one global instance of this class (:data:`request`). If accessed during a request/response cycle, this instance always refers to the *current* re

Source from the content-addressed store, hash-verified

1675
1676
1677class LocalRequest(BaseRequest):
1678 ''' A thread-local subclass of :class:`BaseRequest` with a different
1679 set of attributes for each thread. There is usually only one global
1680 instance of this class (:data:`request`). If accessed during a
1681 request/response cycle, this instance always refers to the *current*
1682 request (even on a multithreaded server). '''
1683 bind = BaseRequest.__init__
1684 environ = local_property()
1685
1686
1687class LocalResponse(BaseResponse):

Callers 1

bottle.pyFile · 0.85

Calls 1

local_propertyFunction · 0.85

Tested by

no test coverage detected