libfilezilla
0.59.0
A cross-platform C++ library for asynchronous and networked applications
Toggle main menu visibility
Loading...
Searching...
No Matches
lib
libfilezilla
http
client_request.hpp
Go to the documentation of this file.
1
#ifndef LIBFILEZILLA_HTTP_CLIENT_REQUEST_HEADER
2
#define LIBFILEZILLA_HTTP_CLIENT_REQUEST_HEADER
3
7
8
#include "
headers.hpp
"
9
#include "
../aio/reader.hpp
"
10
#include "
../uri.hpp
"
11
12
namespace
fz::http::client {
13
14
class
request_response_interface
;
15
18
class
FZ_PUBLIC_SYMBOL
request
:
public
with_headers
19
{
20
public
:
21
fz::uri
uri_;
22
std::string verb_;
23
24
enum
flags
: uint64_t {
26
flag_confidential_path
= 0x01,
27
29
flag_confidential_querystring
= 0x2,
30
31
flag_force_ipv4 = 0x4,
32
flag_force_ipv6 = 0x8
33
};
34
uint64_t flags_{};
35
36
std::unique_ptr<fz::reader_base> body_;
37
38
std::function<void(std::shared_ptr<request_response_interface>
const
&,
size_t
c)> on_body_sending_progress_;
39
40
std::optional<uint64_t> update_content_length_from_body();
41
42
[[nodiscard]]
virtual
bool
reset();
43
};
44
}
45
46
#endif
fz::http::client::request_response_interface
Used for type erasure, so the internals don't need to know the full request/response.
Definition
client.hpp:24
fz::http::client::request
A single HTTP request to be sent by the client.
Definition
client_request.hpp:19
fz::http::client::request::flags
flags
Definition
client_request.hpp:24
fz::http::client::request::flag_confidential_path
@ flag_confidential_path
Avoids logging the path of the URI when processing request.
Definition
client_request.hpp:26
fz::http::client::request::flag_confidential_querystring
@ flag_confidential_querystring
Avoids logging the path of the URI when processing request.
Definition
client_request.hpp:29
fz::http::with_headers
Definition
headers.hpp:30
fz::uri
The uri class is used to decompose URIs into their individual components.
Definition
uri.hpp:30
headers.hpp
Declares fz::with_headers as base for HTTP requests/responses.
reader.hpp
Classes for reading data asynchronously from files.
uri.hpp
Declares fz::uri for (de)composing URIs.
Generated by
1.18.0