SNode.C
Loading...
Searching...
No Matches
SendFragmentCommand.h
Go to the documentation of this file.
1
/*
2
* snode.c - a slim toolkit for network communication
3
* Copyright (C) 2020, 2021, 2022, 2023 Volker Christian <me@vchrist.at>
4
*
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU Lesser General Public License as published
7
* by the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU Lesser General Public License for more details.
14
*
15
* You should have received a copy of the GNU Lesser General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
#
ifndef
WEB_HTTP_CLIENT_COMMANDS_SENDFRAGMENTCOMMAND_H
20
#
define
WEB_HTTP_CLIENT_COMMANDS_SENDFRAGMENTCOMMAND_H
21
22
#
include
"web/http/client/RequestCommand.h"
// IWYU pragma: export
23
24
#
ifndef
DOXYGEN_SHOULD_SKIP_THIS
25
26
#
include
<
cstddef
>
27
28
#
endif
// DOXYGEN_SHOULD_SKIP_THIS
29
30
namespace
web::http::client::commands {
31
32
class
SendFragmentCommand
:
public
web::http::client::
RequestCommand
{
33
public
:
34
SendFragmentCommand
(
const
char
* chunk, std::size_t chunkLen);
35
~
SendFragmentCommand
()
override
;
36
37
// RequestCommand interface
38
bool
execute
(Request* request)
override
;
39
40
private
:
41
char
*
chunk
;
42
std::size_t
chunkLen
;
43
};
44
45
}
// namespace web::http::client::commands
46
47
#
endif
// WEB_HTTP_CLIENT_COMMANDS_SENDFRAGMENTCOMMAND_H
web::http::client::RequestCommand
Definition
RequestCommand.h:32
web::http::client::commands::SendFragmentCommand
Definition
SendFragmentCommand.h:32
web::http::client::commands::SendFragmentCommand::chunk
char * chunk
Definition
SendFragmentCommand.h:41
web::http::client::commands::SendFragmentCommand::execute
bool execute(Request *request) override
Definition
SendFragmentCommand.cpp:42
web::http::client::commands::SendFragmentCommand::~SendFragmentCommand
~SendFragmentCommand() override
Definition
SendFragmentCommand.cpp:38
web::http::client::commands::SendFragmentCommand::chunkLen
std::size_t chunkLen
Definition
SendFragmentCommand.h:42
web::http::client::commands::SendFragmentCommand::SendFragmentCommand
SendFragmentCommand(const char *chunk, std::size_t chunkLen)
Definition
SendFragmentCommand.cpp:32
web::http::client::commands
Definition
EndCommand.cpp:28
web
Definition
ResponseParser.h:39
web
http
client
commands
SendFragmentCommand.h
Generated on Mon Feb 10 2025 20:21:57 for SNode.C by
1.11.0