Class t.w.t.SCGIClientResource(resource.LeafResource):

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.
Line # Kind Name Docs
25 Method __init__ Initialise a SCGI client resource
32 Method renderHTTP Return an IResponse or a deferred which will fire an

Inherited from LeafResource:

Line # Kind Name Docs
225 Method locateChild Locate another object which can be adapted to IResource.

Inherited from RenderMixin (via LeafResource):

Line # Kind Name Docs
19 Method allowedMethods
27 Method checkPreconditions Checks all preconditions imposed by this resource upon a request made
89 Method http_OPTIONS Respond to a OPTIONS request.
99 Method http_TRACE Respond to a TRACE request.
107 Method http_HEAD Respond to a HEAD request.
115 Method http_GET Respond to a GET request.
130 Method render Subclasses should implement this method to do page rendering.
def __init__(self, port, host='localhost'):
Initialise a SCGI client resource
def renderHTTP(self, request):
Return an IResponse or a deferred which will fire an IResponse. This response will be written to the web browser which initiated the request.