Nui
fetch.hpp
Go to the documentation of this file.
1 #pragma once
2 
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 }
Definition: file_dialog.hpp:6
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