Part of twisted.web.client.Agent View Source
Parameters | method | The request method to send. (type: str ) |
uri | The request URI send. (type: str ) | |
headers | The request headers to send. If no Host header is included, one
will be added based on the request URI. (type: Headers ) | |
bodyProducer | An object which will produce the request body or, if the request body is to
be empty, None . (type: IBodyProducer
provider) | |
Returns | A Deferred
which fires with the result of the request (a twisted.web.iweb.IResponse
provider), or fails if there is a problem setting up a connection over
which to issue the request. It may also fail with SchemeNotSupported
if the scheme of the given URI is not supported. (type: Deferred ) |