-
Notifications
You must be signed in to change notification settings - Fork 2.3k
HTTP Client
Marcin Bury edited this page Oct 12, 2018
·
5 revisions
Params
Param | Type | Description | Required |
---|---|---|---|
method | str | method that should be issued e.g. GET, POST | yes |
path | str | path to the resource that should be requested | yes |
session | requests | session manager that should be used | no, default=requests |
kwargs | any | kwargs arguments passed to request method | no |
Returns
Type | Description |
---|---|
Response | Response object |
Example
Params
Param | Type | Description | Required |
---|---|---|---|
path | str | path to HTTP server resource | no, default="" |
Returns
Type | Description |
---|---|
str | full target url with correct schema: http/https |
Example
Params
- None
Returns
Type | Description |
---|---|
bool | True if test connection was successful, False otherwise |
Example
Communication