Nui
nui
include
nui
frontend
api
fetch.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
nui/shared/api/fetch_options.hpp
>
4
5
#include <string>
6
#include <functional>
7
#include <optional>
8
9
namespace
Nui
10
{
19
void
fetch
(
20
std::string
const
& uri,
21
FetchOptions
const
& options,
22
std::function<
void
(std::optional<FetchResponse>
const
&)> callback);
23
void
fetch
(std::string
const
& uri, std::function<
void
(std::optional<FetchResponse>
const
&)> callback);
24
}
fetch_options.hpp
Nui
Definition:
file_dialog.hpp:6
Nui::fetch
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.
Definition:
fetch.cpp:11
Generated by
1.9.1