Commit 7f049689 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

asio: Add dtor to API classes

parent ca1f43df
......@@ -36,6 +36,8 @@ namespace server {
request::request() : impl_(make_unique<request_impl>()) {}
request::~request() {}
const header_map &request::header() const { return impl_->header(); }
const std::string &request::method() const { return impl_->method(); }
......
......@@ -36,6 +36,8 @@ namespace server {
response::response() : impl_(make_unique<response_impl>()) {}
response::~response() {}
void response::write_head(unsigned int status_code, header_map h) const {
impl_->write_head(status_code, std::move(h));
}
......
......@@ -40,6 +40,7 @@ class request {
public:
// Application must not call this directly.
request();
~request();
// Returns request headers. The pusedo headers, which start with
// colon (:), are exluced from this list.
......@@ -65,6 +66,7 @@ class response {
public:
// Application must not call this directly.
response();
~response();
// Write response header using |status_code| (e.g., 200) and
// additional headers in |h|.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment