|
ESPHome 2026.1.5
|
Data Structures | |
| struct | Header |
| class | HttpContainer |
| class | HttpContainerArduino |
| class | HttpContainerHost |
| class | HttpContainerIDF |
| struct | HttpReadResult |
| Result of an HTTP read operation. More... | |
| class | HttpRequestArduino |
| class | HttpRequestComponent |
| class | HttpRequestHost |
| class | HttpRequestIDF |
| class | HttpRequestResponseTrigger |
| class | HttpRequestSendAction |
| class | HttpRequestUpdate |
| class | OtaHttpRequestComponent |
| class | OtaHttpRequestComponentFlashAction |
Functions | |
| bool | is_redirect (int const status) |
| Returns true if the HTTP status code is a redirect. | |
| bool | is_success (int const status) |
| Checks if the given HTTP status code indicates a successful request. | |
| HttpReadLoopResult | http_read_loop_result (int bytes_read_or_error, uint32_t &last_data_time, uint32_t timeout_ms, bool is_read_complete) |
| Process a read result with timeout tracking and delay handling. | |
| HttpReadResult | http_read_fully (HttpContainer *container, uint8_t *buffer, size_t total_size, size_t chunk_size, uint32_t timeout_ms) |
| Read data from HTTP container into buffer with timeout handling Handles feed_wdt, yield, and timeout checking internally. | |
|
strong |
Result of processing a non-blocking read with timeout (for manual loops)
Definition at line 129 of file http_request.h.
|
strong |
Status of a read operation.
| Enumerator | |
|---|---|
| OK | Read completed successfully. |
| ERROR | Read error occurred. |
| TIMEOUT | Timeout waiting for data. |
Definition at line 116 of file http_request.h.
Definition at line 26 of file http_request.h.
| enum esphome::http_request::OtaHttpRequestError : uint8_t |
| Enumerator | |
|---|---|
| OTA_MD5_INVALID | |
| OTA_BAD_URL | |
| OTA_CONNECTION_ERROR | |
Definition at line 19 of file ota_http_request.h.
|
inline |
Read data from HTTP container into buffer with timeout handling Handles feed_wdt, yield, and timeout checking internally.
| container | The HTTP container to read from |
| buffer | Buffer to read into |
| total_size | Total bytes to read |
| chunk_size | Maximum bytes per read call |
| timeout_ms | Read timeout in milliseconds |
Definition at line 245 of file http_request.h.
|
inline |
Process a read result with timeout tracking and delay handling.
| bytes_read_or_error | Return value from read() - positive for bytes read, negative for error |
| last_data_time | Time of last successful read, updated when data received |
| timeout_ms | Maximum time to wait for data |
| is_read_complete | Whether all expected content has been read (from HttpContainer::is_read_complete()) |
Definition at line 143 of file http_request.h.
|
inline |
Returns true if the HTTP status code is a redirect.
| status | the HTTP status code to check |
Definition at line 60 of file http_request.h.
|
inline |
Checks if the given HTTP status code indicates a successful request.
A successful request is one where the status code is in the range 200-299
| status | the HTTP status code to check |
Definition at line 81 of file http_request.h.