forked from sony/nmos-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient_utils.h
24 lines (19 loc) · 850 Bytes
/
client_utils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef NMOS_CLIENT_UTILS_H
#define NMOS_CLIENT_UTILS_H
#include "nmos/settings.h"
namespace web
{
namespace http { namespace client { class http_client_config; } }
namespace websockets { namespace client { class websocket_client_config; } }
}
// Utility types, constants and functions for implementing NMOS REST API clients
namespace nmos
{
// construct client config based on settings, e.g. using the specified proxy
// with the remaining options defaulted, e.g. request timeout
web::http::client::http_client_config make_http_client_config(const nmos::settings& settings);
// construct client config based on settings, e.g. using the specified proxy
// with the remaining options defaulted
web::websockets::client::websocket_client_config make_websocket_client_config(const nmos::settings& settings);
}
#endif