|
Nui
|
Classes | |
| class | AbortController |
| class | AbortSignal |
| class | Console |
| class | DataTransfer |
| class | DataTransferItemList |
| class | DomRect |
| class | DomRectReadOnly |
| class | DragEvent |
| class | Event |
| class | File |
| class | FileList |
| class | KeyboardEvent |
| A keyboard event class. More... | |
| class | MouseEvent |
| A mouse event class. More... | |
| class | ResizeObserver |
| A resize observer class, used for observing resize events on elements. More... | |
| class | ResizeObserverEntry |
| A ResizeObserverEntry interface represents the size of an observed element after a resize. More... | |
| class | UiEvent |
| The UIEvent interface represents simple user interface events. More... | |
Enumerations | |
| enum class | EventPhase { NONE = 0 , CAPTURING_PHASE = 1 , AT_TARGET = 2 , BUBBLING_PHASE = 3 } |
Functions | |
| void | fetch (std::string const &uri, FetchOptions const &options, std::function< void(std::optional< FetchResponse > const &)> callback) |
| Simplified fetch, that uses curl in the backend to fetch data. | |
| void | fetch (std::string const &uri, std::function< void(std::optional< FetchResponse > const &)> callback) |
|
strong |
| void Nui::WebApi::fetch | ( | std::string const & | uri, |
| FetchOptions const & | options, | ||
| std::function< void(std::optional< FetchResponse > const &)> | callback | ||
| ) |
Simplified fetch, that uses curl in the backend to fetch data.
This circumvents the need for ASYNCIFY. Downloading big amounts of data with this is not optimal.
| uri | URI to fetch. |
| options | Options for the fetch. |
| callback | Callback that is called when the fetch is done. |
| void Nui::WebApi::fetch | ( | std::string const & | uri, |
| std::function< void(std::optional< FetchResponse > const &)> | callback | ||
| ) |