introduce string_view

This commit is contained in:
Chunting Gu
2021-06-17 18:58:53 +08:00
parent 751a3539ae
commit 26bb6b341a
38 changed files with 404 additions and 344 deletions
+2 -1
View File
@@ -24,10 +24,11 @@ void Connection::Start() {
boost::system::error_code ec;
auto endpoint = socket_.remote_endpoint(ec);
if (!ec) {
request_->set_ip(endpoint.address().to_string());
request_->set_address(endpoint.address().to_string());
}
request_parser_.Init(request_.get(), view_matcher_);
AsyncRead();
}