Kurlyk
Loading...
Searching...
No Matches
kurlyk.hpp
Go to the documentation of this file.
1#pragma once
2#ifndef _KURLYK_HPP_INCLUDED
3#define _KURLYK_HPP_INCLUDED
4
7
11#ifndef KURLYK_AUTO_INIT
12# define KURLYK_AUTO_INIT 1
13#endif
14
19#ifndef KURLYK_AUTO_INIT_USE_ASYNC
20# define KURLYK_AUTO_INIT_USE_ASYNC 1
21#endif
22
26#ifndef KURLYK_HTTP_SUPPORT
27# define KURLYK_HTTP_SUPPORT 1
28#endif
29
33#ifndef KURLYK_WEBSOCKET_SUPPORT
34# define KURLYK_WEBSOCKET_SUPPORT 1
35#endif
36
39#ifndef KURLYK_JSON_SUPPORT
40# ifdef KURLYK_ENABLE_JSON
41# define KURLYK_JSON_SUPPORT KURLYK_ENABLE_JSON
42# else
43# define KURLYK_JSON_SUPPORT 0
44# endif
45#endif
46
49#ifndef KURLYK_AUTH_SUPPORT
50# define KURLYK_AUTH_SUPPORT 1
51#endif
52
55#ifndef KURLYK_OAUTH_SUPPORT
56# define KURLYK_OAUTH_SUPPORT KURLYK_AUTH_SUPPORT
57#endif
58
59#ifdef __EMSCRIPTEN__
60# define KURLYK_USE_EMSCRIPTEN
61#else
62# if KURLYK_HTTP_SUPPORT
63# define KURLYK_USE_CURL
64# endif
65# if KURLYK_WEBSOCKET_SUPPORT
66# define KURLYK_USE_SIMPLEWEB
67# endif
68#endif
69
70#include "kurlyk/core.hpp"
71
72#if KURLYK_HTTP_SUPPORT
73#include "kurlyk/http.hpp"
74#if KURLYK_AUTH_SUPPORT
75#include "kurlyk/http/auth.hpp"
76#endif
77#endif
78
79#if KURLYK_WEBSOCKET_SUPPORT
80#include "kurlyk/websocket.hpp"
81#endif
82
83#include "kurlyk/startup.hpp"
84
87namespace kurlyk {
88
89} // namespace kurlyk
90
91#endif // _KURLYK_HPP_INCLUDED
Aggregates HTTP authentication providers and OAuth2 PKCE client.
Aggregates core infrastructure components such as task manager interface and the network worker.
Aggregates main HTTP interfaces and utilities, including client, request manager, and helpers.
Primary namespace for the Kurlyk library, encompassing initialization, request management,...
Provides centralized startup and shutdown routines for the Kurlyk library.
Aggregates main WebSocket interfaces and utilities.