#include "fl/fetch.h"
#include "fl/warn.h"
#include "fl/str.h"
#include "fl/mutex.h"
#include "fl/singleton.h"
#include "fl/engine_events.h"
#include "fl/async.h"
#include "platforms/wasm/js_fetch.h"
Go to the source code of this file.
|
fl::promise< response > | fl::execute_fetch_request (const fl::string &url, const fetch_options &request) |
| Internal helper to execute a fetch request and return a promise.
|
|
void | fl::fetch (const fl::string &url, const FetchCallback &callback) |
| Make an HTTP GET request (cross-platform, backward compatible)
|
|
fl::size | fl::fetch_active_requests () |
| Get number of active requests.
|
|
fl::promise< response > | fl::fetch_delete (const fl::string &url, const fetch_options &request=fetch_options("")) |
| HTTP DELETE request.
|
|
fl::promise< response > | fl::fetch_get (const fl::string &url, const fetch_options &request=fetch_options("")) |
| HTTP GET request.
|
|
fl::promise< response > | fl::fetch_head (const fl::string &url, const fetch_options &request=fetch_options("")) |
| HTTP HEAD request.
|
|
fl::promise< response > | fl::fetch_http_options (const fl::string &url, const fetch_options &request=fetch_options("")) |
| HTTP OPTIONS request.
|
|
fl::promise< response > | fl::fetch_patch (const fl::string &url, const fetch_options &request=fetch_options("")) |
| HTTP PATCH request.
|
|
fl::promise< response > | fl::fetch_post (const fl::string &url, const fetch_options &request=fetch_options("")) |
| HTTP POST request.
|
|
fl::promise< response > | fl::fetch_put (const fl::string &url, const fetch_options &request=fetch_options("")) |
| HTTP PUT request.
|
|
fl::promise< response > | fl::fetch_request (const fl::string &url, const RequestOptions &options=RequestOptions()) |
| Generic request with options (like fetch(url, options))
|
|
void | fl::fetch_update () |
| Legacy manual update for fetch promises (use fl::async_run() for new code)
|
|