class documentation
class HttpClientRequest(object):
Undocumented
Method | __init__ |
Describes an HTTP request. |
Method | __repr__ |
Undocumented |
Instance Variable | completion |
Undocumented |
Instance Variable | curl |
Undocumented |
Instance Variable | error |
Undocumented |
Instance Variable | headers |
Undocumented |
Instance Variable | host |
Undocumented |
Instance Variable | method |
Undocumented |
Instance Variable | nicename |
Undocumented |
Instance Variable | path |
Undocumented |
Instance Variable | port |
Undocumented |
Instance Variable | post |
Undocumented |
Instance Variable | read |
Undocumented |
Instance Variable | resp |
Undocumented |
Instance Variable | resp |
Undocumented |
Instance Variable | success |
Undocumented |
Property | url |
Returns the full URL for this requests. |
def __init__(self, host, port, method, path, headers=None, post_data=None, read_timeout=None, curl_config_fn=None, nicename=None, completion_cb=None):
¶
Describes an HTTP request.
Parameters | |
host:string | Hostname |
port:int | Port |
method:string | Method name |
path:string | Request path |
headers:list or None | Additional headers to send, list of strings |
post | Additional data to send |
read | if passed, it will be used as the read timeout while reading the response from the server |
curl | Function to configure cURL object before request |
nicename:string | Name, presentable to a user, to describe this request (no whitespace) |
completion | Callback for request completion |