|
idfxx 1.0.0
Modern C++23 components for ESP-IDF
|
HTTP client class. More...
#include <idfxx/error>#include <idfxx/http/types>#include <chrono>#include <cstdint>#include <functional>#include <optional>#include <span>#include <string>#include <string_view>#include <system_error>#include "sdkconfig.h"Go to the source code of this file.
Classes | |
| struct | idfxx::http::event_data |
| Data passed to HTTP event callbacks. More... | |
| class | idfxx::http::client |
| HTTP client with blocking and streaming request support. More... | |
| class | idfxx::http::client::error_category |
| Error category for HTTP client errors. More... | |
| struct | idfxx::http::client::config |
| HTTP client configuration. More... | |
Namespaces | |
| namespace | idfxx |
| namespace | idfxx::http |
Typedefs | |
| typedef struct esp_http_client * | esp_http_client_handle_t |
| typedef int | esp_err_t |
Enumerations | |
| enum class | idfxx::http::event_id : int { idfxx::http::error = 0 , idfxx::http::on_connected = 1 , idfxx::http::headers_sent = 2 , idfxx::http::on_header = 3 , idfxx::http::on_data = 4 , idfxx::http::on_finish = 5 , idfxx::http::disconnected = 6 , idfxx::http::redirect = 7 } |
| HTTP client event identifiers. More... | |
Functions | |
| const client::error_category & | idfxx::http::http_client_category () noexcept |
| Returns a reference to the HTTP client error category singleton. | |
| std::error_code | idfxx::http::make_error_code (client::errc e) noexcept |
| Creates an error code from an idfxx::http::client::errc value. | |
| std::unexpected< std::error_code > | idfxx::http::http_client_error (esp_err_t e) |
| Creates an unexpected error from an ESP-IDF error code, mapping to HTTP client error codes where possible. | |
| std::string | idfxx::to_string (http::event_id id) |
| Returns a string representation of an HTTP event identifier. | |
HTTP client class.
Definition in file client.hpp.