MySQL 9.1.0
Source Code Documentation
|
a HTTP request and response. More...
#include <request.h>
Classes | |
struct | Holder |
Public Member Functions | |
ServerRequest ()=default | |
ServerRequest (ConnectionInterface *connection, const uint32_t session_id, const base::method::key_type method, const std::string &path, Headers &&headers) | |
Headers & | get_output_headers () override |
IOBuffer & | get_output_buffer () override |
const std::string & | get_input_body () const override |
const Headers & | get_input_headers () const override |
IOBuffer & | get_input_buffer () const override |
MethodType | get_method () const override |
const Uri & | get_uri () const override |
void | send_reply (StatusType status_code) override |
void | send_reply (StatusType status_code, const std::string &status_text) override |
void | send_reply (StatusType status_code, const std::string &status_text, const IOBuffer &buffer) override |
void | send_error (StatusType status_code) override |
void | send_error (StatusType status_code, const std::string &status_text) override |
bool | is_modified_since (time_t last_modified) override |
is request modified since 'last_modified'. More... | |
bool | add_last_modified (time_t last_modified) override |
add a Last-Modified-Since header to the response headers. More... | |
ConnectionInterface * | get_connection () const override |
Holder & | get_data () |
Public Member Functions inherited from http::base::Request | |
virtual | ~Request ()=default |
virtual StatusType | get_response_code () const |
virtual void | set_method (MethodType) |
virtual void | set_uri (Uri &&uri) |
virtual void | set_uri (const Uri &uri) |
Static Public Member Functions | |
static void | sync_callback (Request *, void *) |
Private Attributes | |
Uri | uri_ |
ConnectionInterface * | connection_ {nullptr} |
Holder | holder_ |
Additional Inherited Members | |
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 |
a HTTP request and response.
wraps evhttp_request
|
default |
http::server::ServerRequest::ServerRequest | ( | ConnectionInterface * | connection, |
const uint32_t | session_id, | ||
const base::method::key_type | method, | ||
const std::string & | path, | ||
Headers && | headers | ||
) |
|
overridevirtual |
add a Last-Modified-Since header to the response headers.
Reimplemented from http::base::Request.
|
inlineoverridevirtual |
Implements http::base::Request.
|
inline |
|
overridevirtual |
Implements http::base::Request.
|
overridevirtual |
Implements http::base::Request.
|
overridevirtual |
Implements http::base::Request.
|
overridevirtual |
Reimplemented from http::base::Request.
|
overridevirtual |
Implements http::base::Request.
|
overridevirtual |
Implements http::base::Request.
|
overridevirtual |
Implements http::base::Request.
|
overridevirtual |
is request modified since 'last_modified'.
Reimplemented from http::base::Request.
|
overridevirtual |
Reimplemented from http::base::Request.
|
overridevirtual |
Reimplemented from http::base::Request.
|
overridevirtual |
Reimplemented from http::base::Request.
|
overridevirtual |
Reimplemented from http::base::Request.
|
overridevirtual |
Reimplemented from http::base::Request.
|
static |
|
private |
|
private |
|
private |