# Class e.p.h.e.c.ClientRequest(object):

Part of elisa.plugins.http_client.extern.client_http View In Hierarchy

A class for describing an HTTP request to be sent to the server.

Line # | Kind | Name | Docs
--- | --- | --- | ---
38 | Method | __init__ |

def __init__(self, method, uri, headers, stream):

Parameters | method | The HTTP method to for this request, ex: 'GET', 'HEAD', 'POST', etc. (type: `str` )
| uri | The 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` )
| headers | Headers 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` )
| stream | Content body to send to the remote HTTP server. (type: `twisted.web2.stream.IByteStream` )