|
idfxx 1.0.0
Modern C++23 components for ESP-IDF
|
Classes | |
| class | client |
| HTTP client with blocking and streaming request support. More... | |
| struct | event_data |
| Data passed to HTTP event callbacks. More... | |
| class | request |
| Non-owning view of an HTTP request. More... | |
| class | server |
| HTTP server with URI handler registration and RAII lifecycle. More... | |
| class | ssl_server |
| HTTPS server with TLS support. More... | |
Enumerations | |
| enum class | method : int { get = 0 , post = 1 , put = 2 , patch = 3 , delete_ = 4 , head = 5 , notify = 6 , subscribe = 7 , unsubscribe = 8 , options = 9 , copy = 10 , move = 11 , lock = 12 , unlock = 13 , propfind = 14 , proppatch = 15 , mkcol = 16 , report = 17 } |
| HTTP request methods. More... | |
| enum class | auth_type : int { none = 0 , basic = 1 , digest = 2 } |
| HTTP authentication types. More... | |
| enum class | transport : int { unknown = 0 , tcp = 1 , ssl = 2 } |
| HTTP transport types. More... | |
| enum class | event_id : int { error = 0 , on_connected = 1 , headers_sent = 2 , on_header = 3 , on_data = 4 , on_finish = 5 , disconnected = 6 , redirect = 7 } |
| HTTP client event identifiers. More... | |
Functions | |
| const client::error_category & | http_client_category () noexcept |
| Returns a reference to the HTTP client error category singleton. | |
| std::error_code | make_error_code (client::errc e) noexcept |
| Creates an error code from an idfxx::http::client::errc value. | |
| std::unexpected< std::error_code > | 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. | |
| const server::error_category & | http_server_category () noexcept |
| Returns a reference to the HTTP server error category singleton. | |
| std::error_code | make_error_code (server::errc e) noexcept |
| Creates an error code from an idfxx::http::server::errc value. | |
| std::unexpected< std::error_code > | http_server_error (esp_err_t e) |
| Creates an unexpected error from an ESP-IDF error code, mapping to HTTP server error codes where possible. | |
|
strong |
|
strong |
HTTP client event identifiers.
Definition at line 43 of file client.hpp.
|
strong |
HTTP request methods.
|
strong |
|
noexcept |
Returns a reference to the HTTP client error category singleton.
Referenced by make_error_code().
| 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.
Converts the ESP-IDF error code to an HTTP client-specific error code if a mapping exists, otherwise falls back to the default IDFXX error category.
| e | The ESP-IDF error code. |
|
noexcept |
Returns a reference to the HTTP server error category singleton.
Referenced by make_error_code().
| std::unexpected< std::error_code > idfxx::http::http_server_error | ( | esp_err_t | e | ) |
Creates an unexpected error from an ESP-IDF error code, mapping to HTTP server error codes where possible.
Converts the ESP-IDF error code to an HTTP server-specific error code if a mapping exists, otherwise falls back to the default IDFXX error category.
| e | The ESP-IDF error code. |
|
inlinenoexcept |
Creates an error code from an idfxx::http::client::errc value.
Definition at line 616 of file client.hpp.
References http_client_category().
|
inlinenoexcept |
Creates an error code from an idfxx::http::server::errc value.
Definition at line 950 of file server.hpp.
References http_server_category().