Home | Trees | Indices | Help |
|
---|
|
object --+ | thread._local --+ | _Serving
An interface for registering request and response objects.
Rather than have a separate "thread local" object for the request and the response, this class works as a single threadlocal container for both objects (and any others which developers wish to define). In this way, we can easily dump those objects when we stop/start a new HTTP conversation, yet still refer to them as module-level globals in a thread-safe way.
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
request = _cprequest.Request(_httputil.Host("127.0.0.1", 80), The request object for the current thread. |
|||
response = _cprequest.Response() The response object for the current thread. |
|
|||
Inherited from |
|
requestThe request object for the current thread. In the main thread, and any threads which are not receiving HTTP requests, this is None.
|
responseThe response object for the current thread. In the main thread, and any threads which are not receiving HTTP requests, this is None.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Mar 16 17:19:53 2014 | http://epydoc.sourceforge.net |