Known implementations: twisted.web.http.Request

The interface HTTPChannel expects of Request.

Attribute requestHeaders A http_headers.Headers instance giving all received HTTP request headers.
Attribute responseHeaders A http_headers.Headers instance holding all HTTP response headers to be sent.
Method connectionLost The underlying connection has been lost.
Method gotLength Called when HTTPChannel has determined the length, if any, of the incoming request's body.
Method handleContentChunk Deliver a received chunk of body data to the request. Note this does not imply chunked transfer encoding.
Method parseCookies Parse the request's cookies out of received headers.
Method requestReceived Called when the entire request, including its body, has been received.
Method __eq__ Determines if two requests are the same object.
Method __ne__ Determines if two requests are not the same object.
Method __hash__ Generate a hash value for the request.
requestHeaders =

A http_headers.Headers instance giving all received HTTP request headers.

responseHeaders =

A http_headers.Headers instance holding all HTTP response headers to be sent.

def connectionLost(reason): (source)

The underlying connection has been lost.

ParametersreasonA failure instance indicating the reason why the connection was lost. (type: twisted.python.failure.Failure)
def gotLength(length): (source)

Called when HTTPChannel has determined the length, if any, of the incoming request's body.

ParameterslengthThe length of the request's body. (type: int if the request declares its body's length and None if it does not.)
def handleContentChunk(data): (source)

Deliver a received chunk of body data to the request. Note this does not imply chunked transfer encoding.

ParametersdataThe received chunk. (type: bytes)
def parseCookies(): (source)

Parse the request's cookies out of received headers.

def requestReceived(command, path, version): (source)

Called when the entire request, including its body, has been received.

ParameterscommandThe request's HTTP command. (type: bytes)
pathThe request's path. Note: this is actually what RFC7320 calls the URI. (type: bytes)
versionThe request's HTTP version. (type: bytes)
def __eq__(other): (source)

Determines if two requests are the same object.

ParametersotherAnother object whose identity will be compared to this instance's.
ReturnsTrue when the two are the same object and False when not. (type: bool)
def __ne__(other): (source)

Determines if two requests are not the same object.

ParametersotherAnother object whose identity will be compared to this instance's.
ReturnsTrue when the two are not the same object and False when they are. (type: bool)
def __hash__(): (source)

Generate a hash value for the request.

ReturnsThe request's hash value. (type: int)
API Documentation for Twisted, generated by pydoctor at 2018-10-15 19:29:43.