|
FastLED 3.9.15
|
Unified HTTP fetch API for FastLED (cross-platform)
This API provides both simple callback-based and JavaScript-like promise-based interfaces for HTTP requests. Works on WASM/browser platforms with real fetch, provides stubs on embedded.
WASM Optimization: On WASM platforms, delay() automatically pumps all async tasks (fetch, timers, etc.) in 1ms intervals, making delay time useful for processing async operations.
Definition in file fetch.h.
#include "fl/task/promise.h"#include "fl/stl/string.h"#include "fl/stl/vector.h"#include "fl/stl/map.h"#include "fl/stl/unordered_map.h"#include "fl/stl/optional.h"#include "fl/stl/function.h"#include "fl/stl/shared_ptr.h"#include "fl/task/executor.h"#include "fl/stl/mutex.h"#include "fl/log/log.h"#include "fl/stl/json.h"#include "fl/stl/noexcept.h"
Include dependency graph for fetch.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | fl::net::http::FetchManager |
| Internal fetch manager for promise tracking. More... | |
| class | fl::net::http::FetchOptions |
| Fetch options builder (fluent interface) More... | |
| struct | fl::net::http::RequestOptions |
| Request options (matches JavaScript fetch RequestInit) More... | |
| class | fl::net::http::Response |
| HTTP response class (unified interface) More... | |
Namespaces | |
| namespace | fl |
| Base definition for an LED controller. | |
| namespace | fl::net |
| namespace | fl::net::http |
Typedefs | |
| using | fl::net::http::FetchCallback = fl::function<void(const Response&)> |
| Callback type for simple fetch responses (backward compatible) | |