A thread-local subclass of :class:`BaseResponse` with a different set of attributes for each thread. There is usually only one global instance of this class (:data:`response`). Its attributes are used to build the HTTP response at the end of the request/response cycle.
| 2319 | |
| 2320 | |
| 2321 | class LocalResponse(BaseResponse): |
| 2322 | """ A thread-local subclass of :class:`BaseResponse` with a different |
| 2323 | set of attributes for each thread. There is usually only one global |
| 2324 | instance of this class (:data:`response`). Its attributes are used |
| 2325 | to build the HTTP response at the end of the request/response cycle. |
| 2326 | """ |
| 2327 | bind = BaseResponse.__init__ |
| 2328 | _status_line = _local_property() |
| 2329 | _status_code = _local_property() |
| 2330 | _cookies = _local_property() |
| 2331 | _headers = _local_property() |
| 2332 | body = _local_property() |
| 2333 | |
| 2334 | |
| 2335 | Request = BaseRequest |
no test coverage detected
searching dependent graphs…