Inheritance diagram for HttpBridge:
Public Member Functions | |
this (IServer server, IProvider provider, HttpThread thread) | |
IServer | getServer () |
IProvider | getProvider () |
void | cross (IConduit conduit) |
Private Attributes | |
IServer | server |
IProvider | provider |
HttpThread | thread |
HttpRequest | request |
HttpResponse | response |
Any additional thread-specific data should probably be contained within this class, since it is reachable from almost everywhere.
Definition at line 67 of file HttpBridge.d.
|
Construct a bridge with the requisite attributes. We create the per-thread request/response pair here, and maintain them for the lifetime of the server. Definition at line 84 of file HttpBridge.d. References IProvider::createRequest(), IProvider::createResponse(), IServer, provider, response, server, and thread. |
|
Return the server from one side of this bridge Reimplemented from IProviderBridge. Definition at line 100 of file HttpBridge.d. |
|
Return the provider from the other side of the bridge Reimplemented from IProviderBridge. Definition at line 111 of file HttpBridge.d. References provider. |
|
Bridge the divide between IServer and IProvider instances. Note that there is one instance of this class per thread. Note also that this is probably the right place to implement keep-alive support if that were ever to happen, although the implementation should itself be in a subclass. Reimplemented from IProviderBridge. Definition at line 127 of file HttpBridge.d. References IResource::close(), provider, HttpRequest::readHeaders(), HttpResponse::reset(), HttpRequest::reset(), response, IProvider::service(), and HttpMessage::setConduit(). |
|
Definition at line 69 of file HttpBridge.d. Referenced by getServer(), and this(). |
|
Definition at line 70 of file HttpBridge.d. Referenced by cross(), getProvider(), and this(). |
|
Definition at line 72 of file HttpBridge.d. Referenced by this(). |
|
Definition at line 73 of file HttpBridge.d. |
|
Definition at line 74 of file HttpBridge.d. |