Fetch options builder (fluent interface)
bool is_done() const
Check if request is complete (success or failure)
void update()
Pump the state machine (called by fl::task every update interval)
fl::task::Promise< Response > mPromise
fl::string mResponseBuffer
void complete_error(const char *message)
State get_state() const
Get current state.
~FetchRequest() FL_NOEXCEPT
Destructor - closes socket if still open.
void complete_success(const Response &resp)
@ DNS_LOOKUP
Resolving hostname (brief blocking ~10-100ms)
@ RECEIVING
Receiving HTTP response (non-blocking)
@ SENDING
Sending HTTP request (non-blocking)
@ CONNECTING
Waiting for socket connection (non-blocking)
@ COMPLETED
Successfully completed.
Response parse_http_response(const fl::string &raw)
FetchRequest(const fl::string &url, const FetchOptions &opts, fl::task::Promise< Response > promise)
Construct a new fetch request.
fl::string mRequestBuffer
HTTP response class (unified interface)
Promise class that provides fluent .then() and .catch_() semantics This is a lightweight wrapper arou...
Unified HTTP fetch API for FastLED (cross-platform)
Base definition for an LED controller.
Promise-based fluent API for FastLED - standalone async primitives.
Lightweight URL parser for embedded environments.