Nui
Loading...
Searching...
No Matches
Classes | Enumerations | Functions
Nui::WebApi Namespace Reference

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)
 

Enumeration Type Documentation

◆ EventPhase

enum class Nui::WebApi::EventPhase
strong
Enumerator
NONE 
CAPTURING_PHASE 
AT_TARGET 
BUBBLING_PHASE 

Function Documentation

◆ fetch() [1/2]

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.

Parameters
uriURI to fetch.
optionsOptions for the fetch.
callbackCallback that is called when the fetch is done.

◆ fetch() [2/2]

void Nui::WebApi::fetch ( std::string const &  uri,
std::function< void(std::optional< FetchResponse > const &)>  callback 
)