Part of twisted.web2.twscgi View Source View In Hierarchy
A resource that connects to an SCGI server and relays the server's response to the browser.
This resource connects to a SCGI server on a known host ('localhost', by default) and port. It has no responsibility for starting the SCGI server.
If the server is not running when a client connects then a BAD_GATEWAY response will be returned immediately.| Method | __init__ | Initialise a SCGI client resource |
| Method | renderHTTP | See iweb.IResource.renderHTTP.
|
Inherited from LeafResource:
| Method | locateChild | Locate another object which can be adapted to IResource. |
Inherited from RenderMixin (via LeafResource):
| Method | allowedMethods | |
| Method | checkPreconditions | No summary |
| Method | http_OPTIONS | Respond to a OPTIONS request. @param request: the request to process.
@return: an object adaptable to iweb.IResponse.
|
| Method | http_TRACE | Respond to a TRACE request. @param request: the request to process.
@return: an object adaptable to iweb.IResponse.
|
| Method | http_HEAD | Respond to a HEAD request. @param request: the request to process.
@return: an object adaptable to iweb.IResponse.
|
| Method | http_GET | Respond to a GET request. |
| Method | render | No summary |
See iweb.IResource.renderHTTP.
This implementation will dispatch the given request to
another method of self named http_METHOD, where
METHOD is the HTTP method used by request (eg.
http_GET, http_POST, etc.).
Generally, a subclass should implement those methods instead of overriding this one.
http_* methods are expected provide the same interface and
return the same results as iweb.IResource.renderHTTP
(and therefore this method).
etag and last-modified are added to the
response returned by the http_* header, if known.
http_* method is not found, a
responsecode.NOT_ALLOWED-status response is returned, with an
appropriate allow header.
| Parameters | request | the request to process. |
| Returns | an object adaptable to iweb.IResponse.
| |