#include <HttpClient.h>
|
virtual | ~HttpClient () |
| HttpClient destructor. More...
|
|
bool | sendRequest (const Url &url, RequestCompletedDelegate requestComplete) |
|
bool | sendRequest (const HttpMethod method, const Url &url, const HttpHeaders &headers, RequestCompletedDelegate requestComplete) |
|
bool | sendRequest (const HttpMethod method, const Url &url, const HttpHeaders &headers, const String &body, RequestCompletedDelegate requestComplete) |
|
bool | downloadString (const Url &url, RequestCompletedDelegate requestComplete) |
|
bool | downloadFile (const Url &url, RequestCompletedDelegate requestComplete=nullptr) |
|
bool | downloadFile (const Url &url, const String &saveFileName, RequestCompletedDelegate requestComplete=nullptr) |
| Queue request to download a file. More...
|
|
bool | send (HttpRequest *request) |
|
HttpRequest * | request (const String &url) |
|
HttpRequest * | createRequest (const Url &url) |
| Helper function to create a new request on a URL. More...
|
|
◆ HttpConnectionPool
◆ ~HttpClient()
virtual HttpClient::~HttpClient |
( |
| ) |
|
|
inlinevirtual |
HttpClient destructor.
- Note
- DON'T call cleanup. If you want to free all resources from HttpClients the correct sequence will be to
- Delete all instances of HttpClient
- Call the static method HttpClient::cleanup();
◆ cleanup()
static void HttpClient::cleanup |
( |
| ) |
|
|
inlinestatic |
Use this method to clean all request queues and object pools
◆ createRequest()
Helper function to create a new request on a URL.
- Parameters
-
- Return values
-
◆ downloadFile() [1/2]
◆ downloadFile() [2/2]
Queue request to download a file.
- Parameters
-
url | Source of file data |
saveFileName | Path to save file to. Optional: specify nullptr to use name from url |
requestComplete | Completion callback |
◆ downloadString()
◆ getCacheKey()
String HttpClient::getCacheKey |
( |
const Url & |
url | ) |
|
|
inlineprotected |
◆ request()
◆ send()
◆ sendRequest() [1/3]
◆ sendRequest() [2/3]
◆ sendRequest() [3/3]
◆ httpConnectionPool
The documentation for this class was generated from the following file: