libfilezilla 0.59.0
A cross-platform C++ library for asynchronous and networked applications
Loading...
Searching...
No Matches
request Class Reference

A single HTTP request to be sent by the client. More...

#include <libfilezilla/http/client_request.hpp>

Inheritance diagram for request:
Collaboration diagram for request:

Public Types

enum  flags : uint64_t { flag_confidential_path = 0x01 , flag_confidential_querystring = 0x2 , flag_force_ipv4 = 0x4 , flag_force_ipv6 = 0x8 }

Public Member Functions

std::optional< uint64_t > update_content_length_from_body ()
virtual bool reset ()
Public Member Functions inherited from with_headers
std::optional< uint64_t > get_content_length () const
void set_content_length (uint64_t l)
 Sets Content-Lenght. Also clears Transfer-Encoding.
void set_chunked_encoding ()
 Sets Transfer-Encoding to chunked. Also clears Content-Length.
bool chunked_encoding () const
 Whether chunked encoding is used.
void set_content_type (std::string content_type)
std::string get_header (std::string const &key) const
bool keep_alive () const

Public Attributes

fz::uri uri_
std::string verb_
uint64_t flags_ {}
std::unique_ptr< fz::reader_base > body_
std::function< void(std::shared_ptr< request_response_interface > const &, size_t c)> on_body_sending_progress_
Public Attributes inherited from with_headers
headers headers_

Detailed Description

A single HTTP request to be sent by the client.

Member Enumeration Documentation

◆ flags

enum flags : uint64_t
Enumerator
flag_confidential_path 

Avoids logging the path of the URI when processing request.

flag_confidential_querystring 

Avoids logging the path of the URI when processing request.


The documentation for this class was generated from the following file: