|
| enum | HttpStatus {
HTTP_STATUS_OK = 200
, HTTP_STATUS_NO_CONTENT = 204
, HTTP_STATUS_RESET_CONTENT = 205
, HTTP_STATUS_PARTIAL_CONTENT = 206
,
HTTP_STATUS_MULTIPLE_CHOICES = 300
, HTTP_STATUS_MOVED_PERMANENTLY = 301
, HTTP_STATUS_FOUND = 302
, HTTP_STATUS_SEE_OTHER = 303
,
HTTP_STATUS_NOT_MODIFIED = 304
, HTTP_STATUS_TEMPORARY_REDIRECT = 307
, HTTP_STATUS_PERMANENT_REDIRECT = 308
, HTTP_STATUS_BAD_REQUEST = 400
,
HTTP_STATUS_UNAUTHORIZED = 401
, HTTP_STATUS_FORBIDDEN = 403
, HTTP_STATUS_NOT_FOUND = 404
, HTTP_STATUS_METHOD_NOT_ALLOWED = 405
,
HTTP_STATUS_NOT_ACCEPTABLE = 406
, HTTP_STATUS_LENGTH_REQUIRED = 411
, HTTP_STATUS_INTERNAL_ERROR = 500
} |
| |
| enum class | HttpReadStatus : uint8_t { OK
, ERROR
, TIMEOUT
} |
| | Status of a read operation. More...
|
| |
| enum class | HttpReadLoopResult : uint8_t {
DATA
, COMPLETE
, RETRY
, ERROR
,
TIMEOUT
} |
| | Result of processing a non-blocking read with timeout (for manual loops) More...
|
| |
| enum class | ChunkedState : uint8_t {
CHUNK_HEADER
, CHUNK_HEADER_EXT
, CHUNK_DATA
, CHUNK_DATA_TRAIL
,
CHUNK_TRAILER
, COMPLETE
} |
| | State machine for decoding chunked transfer encoding on Arduino. More...
|
| |
| enum | OtaHttpRequestError : uint8_t { OTA_MD5_INVALID = 0x10
, OTA_BAD_URL = 0x11
, OTA_CONNECTION_ERROR = 0x12
} |
| |
|
| 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.
|
| |
| bool | should_collect_header (const std::vector< std::string > &lower_case_collect_headers, const std::string &lower_header_name) |
| | Check if a header name should be collected (linear scan, fine for small lists)
|
| |
| 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.
|
| |