libfilezilla 0.59.0
A cross-platform C++ library for asynchronous and networked applications
Loading...
Searching...
No Matches
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
12namespace fz::http::client {
13
15
18class FZ_PUBLIC_SYMBOL request : public with_headers
19{
20public:
21 fz::uri uri_;
22 std::string verb_;
23
24 enum flags : uint64_t {
27
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
Used for type erasure, so the internals don't need to know the full request/response.
Definition client.hpp:24
A single HTTP request to be sent by the client.
Definition client_request.hpp:19
flags
Definition client_request.hpp:24
@ flag_confidential_path
Avoids logging the path of the URI when processing request.
Definition client_request.hpp:26
@ flag_confidential_querystring
Avoids logging the path of the URI when processing request.
Definition client_request.hpp:29
Definition headers.hpp:30
The uri class is used to decompose URIs into their individual components.
Definition uri.hpp:30
Declares fz::with_headers as base for HTTP requests/responses.
Classes for reading data asynchronously from files.
Declares fz::uri for (de)composing URIs.