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_CLIENT_COMMANDS_SSECOMMAND_H
43#define WEB_HTTP_CLIENT_COMMANDS_SSECOMMAND_H
45#include "web/http/client/RequestCommand.h"
47namespace web::http::client {
52#ifndef DOXYGEN_SHOULD_SKIP_THIS
58namespace web::http::client::
commands {
64 SseCommand(
const std::function<
void(
const std::shared_ptr<
Request>&,
const std::shared_ptr<
Response>&)>& onResponseReceived,
65 const std::function<
void(
const std::shared_ptr<
Request>&,
const std::string&)>& onResponseParseError);
RequestCommand(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)
SseCommand(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)
bool execute(const std::shared_ptr< MasterRequest > &request) override