FastLED 3.9.15
Loading...
Searching...
No Matches

◆ fetch() [2/2]

void fl::net::http::fetch ( const fl::string & url,
const FetchCallback & callback )

Make an HTTP GET request (cross-platform, backward compatible)

Parameters
urlThe URL to fetch
callbackFunction to call with the response

On WASM/browser platforms: Uses native JavaScript fetch() API On Arduino/embedded platforms: Immediately calls callback with error response

Definition at line 403 of file fetch.cpp.hpp.

403 {
404 (void)url;
405 Response resp(501, "Not Implemented");
406 resp.set_text("HTTP fetch not supported on this platform");
407 callback(resp);
408}
HTTP response class (unified interface)
Definition fetch.h:78
Definition url.h:15

References fl::net::http::Response::set_text().

Referenced by fetch().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: