26#ifndef ROUTER_SRC_HTTP_SRC_HTTP_SERVER_REQUEST_H_
27#define ROUTER_SRC_HTTP_SRC_HTTP_SERVER_REQUEST_H_
32#include <system_error>
49 uint32_t stream_id_{0};
63 Headers &get_output_headers()
override;
64 IOBuffer &get_output_buffer()
override;
66 const std::string &get_input_body()
const override;
67 const Headers &get_input_headers()
const override;
68 IOBuffer &get_input_buffer()
const override;
72 const Uri &get_uri()
const override;
74 void send_reply(
StatusType status_code)
override;
76 const std::string &status_text)
override;
77 void send_reply(
StatusType status_code,
const std::string &status_text,
80 void send_error(
StatusType status_code)
override;
82 const std::string &status_text)
override;
92 bool is_modified_since(time_t last_modified)
override;
97 bool add_last_modified(time_t last_modified)
override;
Definition: connection_interface.h:41
Definition: io_buffer.h:41
http::base::method::key_type MethodType
Definition: request.h:49
http::base::status_code::key_type StatusType
Definition: request.h:50
a HTTP request and response.
Definition: request.h:46
static void sync_callback(Request *, void *)
Uri uri_
Definition: request.h:104
Holder holder_
Definition: request.h:106
ConnectionInterface * get_connection() const override
Definition: request.h:99
Holder & get_data()
Definition: request.h:101
#define HTTP_SERVER_LIB_EXPORT
Definition: http_server_lib_export.h:15
static char * path
Definition: mysqldump.cc:149
constexpr key_type Get
Definition: method.h:60
int key_type
Definition: method.h:38
Definition: connection.h:56
mutable_buffer buffer(void *p, size_t n) noexcept
Definition: buffer.h:418
IOBuffer input_body_
Definition: request.h:53
Headers output_headers_
Definition: request.h:52
IOBuffer output_body_
Definition: request.h:54
Headers input_headers_
Definition: request.h:51
Definition: server_struct.h:39