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_LEGACY_IN_CLIENT_H
43#define WEB_HTTP_LEGACY_IN_CLIENT_H
45#include "net/in/stream/legacy/SocketClient.h"
46#include "web/http/client/Client.h"
48#ifndef DOXYGEN_SHOULD_SKIP_THIS
52namespace web::http::legacy::
in {
#define APPLICATION(req, res)
#define MIDDLEWARE(req, res, next)
Client::MasterRequest MasterRequest
std::deque< TestCase > testCases
void dispatchNextRequest()
std::shared_ptr< MasterRequest > masterRequest
web::http::legacy::in::Client Client
std::shared_ptr< Client > client
Client::Response Response
std::size_t getFailures() const
static void atNextTick(const std::function< void(void)> &callBack)
static void init(int argc, char *argv[])
static int start(const utils::Timeval &timeOut={LONG_MAX, 0})
Config * getConfig() const
static constexpr int DISABLED
bool operator==(const int &state) const
static constexpr int ERROR
static constexpr int FATAL
static Timer singleshotTimer(const std::function< void()> &dispatcher, const utils::Timeval &timeout)
void operator()(const std::string &how="") const
std::map< std::string, std::string > params
void send(const std::string &chunk)
Response & status(int status)
Route & get(const Router &router) const
WebAppT(const std::string &name)
LogMessage(Level level, int verboseLevel=-1, bool withErrno=false)
std::string toString(bool expanded=true) const override
const Super & connect(const std::string &ipOrHostname, uint16_t port, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
const Super & listen(uint16_t port, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
ConfigSocketServer * setReuseAddress(bool reuseAddress=true)
constexpr bool setAttribute(const Attribute &&attribute, const std::string &subKey="", bool overwrite=false)
bool getAttribute(const std::function< void(Attribute &)> &onFound, const std::string &subKey="") const
bool end(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)
Request & set(const std::string &field, const std::string &value, bool overwrite=true)
int main(int argc, char *argv[])
net::in::stream::SocketClient< core::socket::stream::legacy::SocketConnector, net::in::stream::legacy::config::ConfigSocketClient, SocketContextFactoryT, Args... > SocketClient
web::http::client::Client< net::in::stream::legacy::SocketClient > Client