2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
42#ifndef WEB_HTTP_TLS_IN_CLIENT_H
43#define WEB_HTTP_TLS_IN_CLIENT_H
45#include "net/in/stream/tls/SocketClient.h"
46#include "web/http/client/Client.h"
48#ifndef DOXYGEN_SHOULD_SKIP_THIS
52namespace web::http::tls::
in {
54 using Client = web::http::client::
Client<net::in::stream::tls::SocketClient>;
static void init(int argc, char *argv[])
static int start(const utils::Timeval &timeOut={LONG_MAX, 0})
Config & getConfig() const
static constexpr int DISABLED
static constexpr int ERROR
static constexpr int FATAL
void connect(const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
const std::string & getInstanceName() const
std::string toString(bool expanded=true) const override
const std::map< std::string, std::string > & getOptions() const
const std::string & getValue() const
Client(const std::string &name, std::function< void(const std::shared_ptr< Request > &)> &&onRequestBegin, std::function< void(const std::shared_ptr< Request > &)> &&onRequestEnd)
Request & set(const std::string &field, const std::string &value, bool overwrite=true)
std::string header(const std::string &field)
bool upgrade(const std::string &url, const std::string &protocols, const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &onResponseReceived, const std::function< void(const std::shared_ptr< Request > &, const std::string &)> &onResponseParseError=responseParseError)
void upgrade(const std::shared_ptr< Response > &response, const std::function< void(const std::string &)> &status)
CiStringMap< std::string > headers
CiStringMap< CookieOptions > cookies
int main(int argc, char *argv[])