BaseHttpClient
¶
Bases: ABC
Base interface for all HTTP clients.
You can create your own HTTP client by subclassing this class.
Source code in quickapi/http_clients/base.py
| Python | |
|---|---|
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | |
BaseHttpMethod
¶
Bases: str, Enum
Supported HTTP methods.
Source code in quickapi/http_clients/types.py
| Python | |
|---|---|
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | |
HTTPx (Default)¶
HTTPxClient
¶
Bases: BaseHttpClient
A thin wrapper around HTTPx. This is the default client.
Source code in quickapi/http_clients/httpx.py
| Python | |
|---|---|
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | |
Requests¶
RequestsClient
¶
Bases: BaseHttpClient
A thin wrapper around requests.
This client is only available if the requests library is installed with:
pip install quickapiclient[requests]
or poetry add quickapiclient[requests].
Source code in quickapi/http_clients/requests.py
| Python | |
|---|---|
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | |