8#include <esp_http_client.h>
13namespace http_request {
18 int read(uint8_t *buf,
size_t max_len)
override;
40 std::shared_ptr<HttpContainer>
perform(
const std::string &url,
const std::string &method,
const std::string &body,
41 const std::list<Header> &request_headers,
42 const std::set<std::string> &collect_headers)
override;
std::map< std::string, std::list< std::string > > response_headers_
int read(uint8_t *buf, size_t max_len) override
HttpContainerIDF(esp_http_client_handle_t client)
void set_response_headers(std::map< std::string, std::list< std::string > > &response_headers)
void feed_wdt()
Feeds the watchdog timer if the executing task has one attached.
esp_http_client_handle_t client_
void set_buffer_size_tx(uint16_t buffer_size_tx)
void set_buffer_size_rx(uint16_t buffer_size_rx)
void dump_config() override
static esp_err_t http_event_handler(esp_http_client_event_t *evt)
Monitors the http client events to gather response headers.
std::shared_ptr< HttpContainer > perform(const std::string &url, const std::string &method, const std::string &body, const std::list< Header > &request_headers, const std::set< std::string > &collect_headers) override
Providing packet encoding functions for exchanging data with a remote host.