Kurlyk
Loading...
Searching...
No Matches
kurlyk.hpp
Go to the documentation of this file.
1#pragma once
2#ifndef KURLYK_HEADER_KURLYK_HPP_INCLUDED
3#define KURLYK_HEADER_KURLYK_HPP_INCLUDED
4
7
8#include "kurlyk/config.hpp"
9
13#ifndef KURLYK_AUTO_INIT
14# define KURLYK_AUTO_INIT 1
15#endif
16
21#ifndef KURLYK_AUTO_INIT_USE_ASYNC
22# define KURLYK_AUTO_INIT_USE_ASYNC 1
23#endif
24
28#ifndef KURLYK_HTTP_SUPPORT
29# define KURLYK_HTTP_SUPPORT 1
30#endif
31
35#ifndef KURLYK_WEBSOCKET_SUPPORT
36# define KURLYK_WEBSOCKET_SUPPORT 1
37#endif
38
41#ifndef KURLYK_JSON_SUPPORT
42# ifdef KURLYK_ENABLE_JSON
43# define KURLYK_JSON_SUPPORT KURLYK_ENABLE_JSON
44# else
45# define KURLYK_JSON_SUPPORT 0
46# endif
47#endif
48
51#ifndef KURLYK_AUTH_SUPPORT
52# define KURLYK_AUTH_SUPPORT 1
53#endif
54
57#ifndef KURLYK_OAUTH_SUPPORT
58# define KURLYK_OAUTH_SUPPORT KURLYK_AUTH_SUPPORT
59#endif
60
61#ifdef __EMSCRIPTEN__
62# define KURLYK_USE_EMSCRIPTEN
63#else
64# if KURLYK_HTTP_SUPPORT
65# define KURLYK_USE_CURL
66# endif
67# if KURLYK_WEBSOCKET_SUPPORT
68# define KURLYK_USE_SIMPLEWEB
69# endif
70#endif
71
72#include "kurlyk/core.hpp"
73
74#if KURLYK_HTTP_SUPPORT
75#include "kurlyk/http.hpp"
76#if KURLYK_AUTH_SUPPORT
77#include "kurlyk/http/auth.hpp"
78#endif
79#endif
80
81#if KURLYK_WEBSOCKET_SUPPORT
82#include "kurlyk/websocket.hpp"
83#endif
84
85#include "kurlyk/startup.hpp"
86
89namespace kurlyk {
90
91} // namespace kurlyk
92
93#endif // KURLYK_HEADER_KURLYK_HPP_INCLUDED
Aggregates HTTP authentication providers and OAuth2 PKCE client.
Defines public compile-time configuration for the native Asio backend.
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.