|
libfetch 0.0.0
A lightweight asynchronous HTTP/1.1 client library implementing a subset of the WHATWG Fetch API.
|
Shortcuts for common operations. More...
Macros | |
| #define | FETCH_GET(url) |
| Make a simple GET request (BLOCKING) | |
| #define | FETCH_ASYNC_GET(url) |
| Make a simple async GET request (NON-BLOCKING) | |
| #define | FETCH_IS_OK(response) |
| Check if response is successful. | |
| #define | FETCH_PROMISE_IS_DONE(promise) |
| Check if promise is done (fulfilled or rejected) | |
Shortcuts for common operations.
| #define FETCH_ASYNC_GET | ( | url | ) |
Make a simple async GET request (NON-BLOCKING)
| #define FETCH_GET | ( | url | ) |
| #define FETCH_IS_OK | ( | response | ) |
Check if response is successful.
| #define FETCH_PROMISE_IS_DONE | ( | promise | ) |
Check if promise is done (fulfilled or rejected)