An HTTP client. A client maintains a pool of connections to a specific
host, at a specific port. The HTTP connections can act as pipelines for
HTTP requests. It is used as a factory for HttpClientRequest instances
which encapsulate the actual HTTP requests. It is also used as a factory
for HTML5 WebSocket websockets.
|
|
|
|
|
get_max_pool_size(self)
The maxium number of connections this client will pool. |
source code
|
|
|
|
|
set_keep_alive(self,
val)
If val is true then, after the request has ended the connection will
be returned to the pool where it can be used by another request. |
source code
|
|
|
|
|
set_port(self,
val)
Set the port that the client will attempt to connect to on the server
on. |
source code
|
|
|
set_host(self,
val)
Set the host name or ip address that the client will attempt to
connect to on the server on. |
source code
|
|
|
|
|
get_now(self,
uri,
handler,
**headers)
This is a quick version of the get method where you do not want to do
anything with the request before sing. |
source code
|
|
|
options(self,
uri,
handler)
This method returns an HttpClientRequest instance which represents an
HTTP OPTIONS request with the specified uri. |
source code
|
|
|
get(self,
uri,
handler)
This method returns an HttpClientRequest instance which represents an
HTTP GET request with the specified uri. |
source code
|
|
|
head(self,
uri,
handler)
This method returns an HttpClientRequest instance which represents an
HTTP HEAD request with the specified uri. |
source code
|
|
|
post(self,
uri,
handler)
This method returns an HttpClientRequest instance which represents an
HTTP POST request with the specified uri. |
source code
|
|
|
put(self,
uri,
handler)
This method returns an HttpClientRequest instance which represents an
HTTP PUT request with the specified uri. |
source code
|
|
|
delete(self,
uri,
handler)
This method returns an HttpClientRequest instance which represents an
HTTP DELETE request with the specified uri. |
source code
|
|
|
trace(self,
uri,
handler)
This method returns an HttpClientRequest instance which represents an
HTTP TRACE request with the specified uri. |
source code
|
|
|
connect(self,
uri,
handler)
This method returns an HttpClientRequest instance which represents an
HTTP CONNECT request with the specified uri. |
source code
|
|
|
patch(self,
uri,
handler)
This method returns an HttpClientRequest instance which represents an
HTTP PATCH request with the specified uri. |
source code
|
|
|
request(self,
method,
uri,
handler)
This method returns an HttpClientRequest instance which represents an
HTTP request with the specified method and uri. |
source code
|
|
|
|
Inherited from ssl_support.SSLSupport :
set_key_store_password ,
set_key_store_path ,
set_ssl ,
set_trust_store_password ,
set_trust_store_path
Inherited from tcp_support.TCPSupport :
set_receive_buffer_size ,
set_reuse_address ,
set_send_buffer_size ,
set_so_linger ,
set_tcp_keep_alive ,
set_traffic_class
|