This class gives possibility to make http requests to external APIs
Functions
Make an HTTP get request
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
url | str | ||
headers | Dict | ||
raise_exception_if_error | bool | False | |
timeout | int | 60 |
Return type:
Response |
Make an HTTP get request
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
url | str | ||
headers | Dict | ||
raise_exception_if_error | bool | False | |
timeout | int | 60 |
Return type:
Response |
Make an HTTP post request
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
url | str | ||
body | Any | ||
headers | Dict | ||
raise_exception_if_error | bool | False | |
timeout | int | 60 |
Return type:
Response |
Make an HTTP put request
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
url | str | ||
body | Any | ||
headers | Dict | ||
files | Any | ||
raise_exception_if_error | bool | False | |
timeout | int | 60 |
Return type:
Response |
Make an HTTP put request
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
url | str | ||
data | Any | ||
headers | Dict | ||
files | Any | ||
raise_exception_if_error | bool | False | |
timeout | int | 60 |
Return type:
Response |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
response | Response |