MySQL 8.4.2
Source Code Documentation
http::base::Request Class Referenceabstract

#include <request.h>

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

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 Member Functions

virtual ~Request ()=default
 
virtual const Headersget_input_headers () const =0
 
virtual IOBufferget_input_buffer () const =0
 
virtual const std::string & get_input_body () const =0
 
virtual Headersget_output_headers ()=0
 
virtual IOBufferget_output_buffer ()=0
 
virtual StatusType get_response_code () const
 
virtual void set_method (MethodType)
 
virtual MethodType get_method () const
 
virtual void set_uri (Uri &&uri)
 
virtual void set_uri (const Uri &uri)
 
virtual const Uriget_uri () const =0
 
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...
 
virtual ConnectionInterfaceget_connection () const =0
 

Member Typedef Documentation

◆ ConnectionInterface

◆ Headers

◆ IOBuffer

◆ MethodType

◆ StatusType

◆ Uri

Constructor & Destructor Documentation

◆ ~Request()

virtual http::base::Request::~Request ( )
virtualdefault

Reimplemented in http::client::Request.

Member Function Documentation

◆ add_last_modified()

virtual bool http::base::Request::add_last_modified ( time_t  last_modified)
inlinevirtual

add a Last-Modified-Since header to the response headers.

Reimplemented in http::server::ServerRequest.

◆ get_connection()

virtual ConnectionInterface * http::base::Request::get_connection ( ) const
pure virtual

◆ get_input_body()

virtual const std::string & http::base::Request::get_input_body ( ) const
pure virtual

◆ get_input_buffer()

virtual IOBuffer & http::base::Request::get_input_buffer ( ) const
pure virtual

◆ get_input_headers()

virtual const Headers & http::base::Request::get_input_headers ( ) const
pure virtual

◆ get_method()

virtual MethodType http::base::Request::get_method ( ) const
inlinevirtual

◆ get_output_buffer()

virtual IOBuffer & http::base::Request::get_output_buffer ( )
pure virtual

◆ get_output_headers()

virtual Headers & http::base::Request::get_output_headers ( )
pure virtual

◆ get_response_code()

virtual StatusType http::base::Request::get_response_code ( ) const
inlinevirtual

Reimplemented in http::client::Request.

◆ get_uri()

virtual const Uri & http::base::Request::get_uri ( ) const
pure virtual

◆ is_modified_since()

virtual bool http::base::Request::is_modified_since ( time_t  last_modified)
inlinevirtual

is request modified since 'last_modified'.

Returns
true, if local content is newer than the clients last known date, false otherwise

Reimplemented in http::server::ServerRequest.

◆ send_error() [1/2]

virtual void http::base::Request::send_error ( StatusType  status_code)
inlinevirtual

Reimplemented in http::server::ServerRequest.

◆ send_error() [2/2]

virtual void http::base::Request::send_error ( StatusType  status_code,
const std::string &  status_text 
)
inlinevirtual

Reimplemented in http::server::ServerRequest.

◆ send_reply() [1/3]

virtual void http::base::Request::send_reply ( StatusType  status_code)
inlinevirtual

Reimplemented in http::server::ServerRequest.

◆ send_reply() [2/3]

virtual void http::base::Request::send_reply ( StatusType  status_code,
const std::string &  status_text 
)
inlinevirtual

Reimplemented in http::server::ServerRequest.

◆ send_reply() [3/3]

virtual void http::base::Request::send_reply ( StatusType  status_code,
const std::string &  status_text,
const IOBuffer buffer 
)
inlinevirtual

Reimplemented in http::server::ServerRequest.

◆ set_method()

virtual void http::base::Request::set_method ( MethodType  )
inlinevirtual

Reimplemented in http::client::Request.

◆ set_uri() [1/2]

virtual void http::base::Request::set_uri ( const Uri uri)
inlinevirtual

Reimplemented in http::client::Request.

◆ set_uri() [2/2]

virtual void http::base::Request::set_uri ( Uri &&  uri)
inlinevirtual

Reimplemented in http::client::Request.


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