8.16.0.4
2 Sessions
class | |||||||
| |||||||
| |||||||
method | |||||||
Creates a new session, which can house multiple requests with a common
configuration.
A session has a pool of connections, and the pool is configured through the pool_config structor argument, which is a PoolConfig.
A session is Closeable, where closing a session via the Session.close method closes all of its associated connections and responses.
method | ||||||||||||||
|
Sends an HTTP request. By default, a GET request is sent, but the
method argument selects the type of request. The functions
get, post, delete, head,
options, patch, and put are the same as
calling Session.request with the corresponding request type (on a
Session object that is given as a ~session
argument, defaulting to a fresh session).
context parameter | |
Methods recognized by Session.request.
annotation | |