t.w.c.h.ClientRequest(object) : class documentation

Part of twisted.web2.client.http View Source View In Hierarchy

A class for describing an HTTP request to be sent to the server.
Method __init__
def __init__(self, method, uri, headers, stream): (source)
ParametersmethodThe HTTP method to for this request, ex: 'GET', 'HEAD', 'POST', etc. (type: str )
uriThe URI of the resource to request, this may be absolute or relative, however the interpretation of this URI is left up to the remote server. (type: str )
headersHeaders to be sent to the server. It is important to note that this object does not create any implicit headers. So it is up to the HTTP Client to add required headers such as 'Host'. (type: dict, twisted.web2.http_headers.Headers, or None )
streamContent body to send to the remote HTTP server. (type: twisted.web2.stream.IByteStream )
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:12:41.