FastLED 3.10.8
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 404 of file fetch.cpp.hpp.

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

References fl::FL_NO_EXCEPT, and 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: