Package ganeti :: Package http :: Module client :: Class HttpClientRequest
[hide private]
[frames] | no frames]

Class HttpClientRequest

source code


Instance Methods [hide private]
 
__init__(self, host, port, method, path, headers=None, post_data=None, ssl_params=None, ssl_verify_peer=False)
Describes an HTTP request.
source code
 
__repr__(self)
repr(x)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, host, port, method, path, headers=None, post_data=None, ssl_params=None, ssl_verify_peer=False)
(Constructor)

source code 

Describes an HTTP request.

Parameters:
  • host (string) - Hostname
  • port (int) - Port
  • method (string) - Method name
  • path (string) - Request path
  • headers (dict or None) - Additional headers to send
  • post_data (string or None) - Additional data to send
  • ssl_params (HttpSslParams) - SSL key and certificate
  • ssl_verify_peer (bool) - Whether to compare our certificate with server's certificate
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)