26#ifndef ROUTER_SRC_HTTP_INCLUDE_HTTP_BASE_REQUEST_H_
27#define ROUTER_SRC_HTTP_INCLUDE_HTTP_BASE_REQUEST_H_
69 "Unsupported in current derived class of `http::base::Request`");
76 "Unsupported in current derived class of `http::base::Request`");
81 "Unsupported in current derived class of `http::base::Request`");
88 "Unsupported in current derived class of `http::base::Request`");
93 "Unsupported in current derived class of `http::base::Request`");
100 "Unsupported in current derived class of `http::base::Request`");
104 [[maybe_unused]]
const std::string &status_text) {
106 "Unsupported in current derived class of `http::base::Request`");
110 [[maybe_unused]]
const std::string &status_text,
113 "Unsupported in current derived class of `http::base::Request`");
118 "Unsupported in current derived class of `http::base::Request`");
122 [[maybe_unused]]
const std::string &status_text) {
124 "Unsupported in current derived class of `http::base::Request`");
135 "Unsupported in current derived class of `http::base::Request`");
144 "Unsupported in current derived class of `http::base::Request`");
Definition: connection_interface.h:41
Definition: io_buffer.h:41
virtual void send_reply(StatusType status_code, const std::string &status_text, const IOBuffer &buffer)
Definition: request.h:109
virtual void set_uri(Uri &&uri)
Definition: request.h:86
virtual void send_reply(StatusType status_code, const std::string &status_text)
Definition: request.h:103
virtual IOBuffer & get_output_buffer()=0
virtual bool add_last_modified(time_t last_modified)
add a Last-Modified-Since header to the response headers.
Definition: request.h:142
virtual void send_reply(StatusType status_code)
Definition: request.h:98
virtual const std::string & get_input_body() const =0
virtual Headers & get_output_headers()=0
virtual const Uri & get_uri() const =0
virtual MethodType get_method() const
Definition: request.h:79
virtual ConnectionInterface * get_connection() const =0
virtual StatusType get_response_code() const
Definition: request.h:67
virtual void set_uri(const Uri &uri)
Definition: request.h:91
virtual IOBuffer & get_input_buffer() const =0
virtual void send_error(StatusType status_code, const std::string &status_text)
Definition: request.h:121
http::base::method::key_type MethodType
Definition: request.h:49
http::base::status_code::key_type StatusType
Definition: request.h:50
virtual ~Request()=default
virtual void send_error(StatusType status_code)
Definition: request.h:116
virtual const Headers & get_input_headers() const =0
virtual void set_method(MethodType)
Definition: request.h:74
virtual bool is_modified_since(time_t last_modified)
is request modified since 'last_modified'.
Definition: request.h:133
#define HTTP_COMMON_EXPORT
Definition: http_common_export.h:15
int key_type
Definition: method.h:38
int key_type
Definition: status_code.h:36
constexpr key_type NotImplemented
Definition: status_code.h:94
Request::ConnectionInterface ConnectionInterface
Definition: request.cc:38
Request::IOBuffer IOBuffer
Definition: request.cc:33
Request::Headers Headers
Definition: request.cc:35
Request::Uri Uri
Definition: request.cc:37
Definition: connection.h:56
mutable_buffer buffer(void *p, size_t n) noexcept
Definition: buffer.h:418