MySQL 8.4.2
Source Code Documentation
http::client::Request Class Reference

#include <request.h>

Inheritance diagram for http::client::Request:
[legend]

Classes

class  Holder
 

Public Types

using IOBuffer = http::base::IOBuffer
 
using Headers = http::base::Headers
 
using Uri = http::base::Uri
 
using MethodType = http::base::method::key_type
 
using StatusType = http::base::status_code::key_type
 
using ConnectionInterface = http::base::ConnectionInterface
 
- Public Types inherited from http::base::Request
using IOBuffer = http::base::IOBuffer
 
using Headers = http::base::Headers
 
using Uri = http::base::Uri
 
using MethodType = http::base::method::key_type
 
using StatusType = http::base::status_code::key_type
 
using ConnectionInterface = http::base::ConnectionInterface
 

Public Member Functions

 Request (const Uri &uri, MethodType method=http::base::method::Get)
 
 Request ()
 
 Request (Request &&)
 
 ~Request () override
 
const Headersget_input_headers () const override
 
IOBufferget_input_buffer () const override
 
const std::string & get_input_body () const override
 
Headersget_output_headers () override
 
IOBufferget_output_buffer () override
 
StatusType get_response_code () const override
 
std::string get_response_code_line () const
 
void set_method (MethodType) override
 
MethodType get_method () const override
 
const Uriget_uri () const override
 
void set_uri (const Uri &uri) override
 
void set_uri (Uri &&uri) override
 
ConnectionInterfaceget_connection () const override
 
 operator bool () const
 
std::string error_msg () const
 
- Public Member Functions inherited from http::base::Request
virtual void send_reply (StatusType status_code)
 
virtual void send_reply (StatusType status_code, const std::string &status_text)
 
virtual void send_reply (StatusType status_code, const std::string &status_text, const IOBuffer &buffer)
 
virtual void send_error (StatusType status_code)
 
virtual void send_error (StatusType status_code, const std::string &status_text)
 
virtual bool is_modified_since (time_t last_modified)
 is request modified since 'last_modified'. More...
 
virtual bool add_last_modified (time_t last_modified)
 add a Last-Modified-Since header to the response headers. More...
 

Private Attributes

std::unique_ptr< Holderholder_
 

Friends

class Client
 

Member Typedef Documentation

◆ ConnectionInterface

◆ Headers

◆ IOBuffer

◆ MethodType

◆ StatusType

◆ Uri

Constructor & Destructor Documentation

◆ Request() [1/3]

http::client::Request::Request ( const Uri uri,
MethodType  method = http::base::method::Get 
)
inlineexplicit

◆ Request() [2/3]

http::client::Request::Request ( )
inline

◆ Request() [3/3]

http::client::Request::Request ( Request &&  other)

◆ ~Request()

http::client::Request::~Request ( )
overridevirtualdefault

Reimplemented from http::base::Request.

Member Function Documentation

◆ error_msg()

std::string http::client::Request::error_msg ( ) const
inline

◆ get_connection()

ConnectionInterface * http::client::Request::get_connection ( ) const
overridevirtual

Implements http::base::Request.

◆ get_input_body()

const std::string & http::client::Request::get_input_body ( ) const
overridevirtual

Implements http::base::Request.

◆ get_input_buffer()

IOBuffer & http::client::Request::get_input_buffer ( ) const
overridevirtual

Implements http::base::Request.

◆ get_input_headers()

const Headers & http::client::Request::get_input_headers ( ) const
overridevirtual

Implements http::base::Request.

◆ get_method()

MethodType http::client::Request::get_method ( ) const
overridevirtual

Reimplemented from http::base::Request.

◆ get_output_buffer()

IOBuffer & http::client::Request::get_output_buffer ( )
overridevirtual

Implements http::base::Request.

◆ get_output_headers()

Headers & http::client::Request::get_output_headers ( )
overridevirtual

Implements http::base::Request.

◆ get_response_code()

StatusType http::client::Request::get_response_code ( ) const
overridevirtual

Reimplemented from http::base::Request.

◆ get_response_code_line()

std::string http::client::Request::get_response_code_line ( ) const

◆ get_uri()

const Uri & http::client::Request::get_uri ( ) const
overridevirtual

Implements http::base::Request.

◆ operator bool()

http::client::Request::operator bool ( ) const
inline

◆ set_method()

void http::client::Request::set_method ( MethodType  method)
overridevirtual

Reimplemented from http::base::Request.

◆ set_uri() [1/2]

void http::client::Request::set_uri ( const Uri uri)
overridevirtual

Reimplemented from http::base::Request.

◆ set_uri() [2/2]

void http::client::Request::set_uri ( Uri &&  uri)
overridevirtual

Reimplemented from http::base::Request.

Friends And Related Function Documentation

◆ Client

friend class Client
friend

Member Data Documentation

◆ holder_

std::unique_ptr<Holder> http::client::Request::holder_
private

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