From c36aa219e25e26019035fe3465471fd510778422 Mon Sep 17 00:00:00 2001 From: ipknHama Date: Thu, 7 Aug 2014 08:31:27 +0900 Subject: now crow becomes completely header only --- include/http_connection.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'include/http_connection.h') diff --git a/include/http_connection.h b/include/http_connection.h index d73398e..a030d73 100644 --- a/include/http_connection.h +++ b/include/http_connection.h @@ -1,11 +1,12 @@ #pragma once #include #include +#include #include #include #include -#include +#include "http_parser_merged.h" #include "datetime.h" #include "parser.h" @@ -29,7 +30,8 @@ namespace crow handler_(handler), parser_(this), server_name_(server_name), - deadline_(socket_.get_io_service()) + deadline_(socket_.get_io_service()), + address_str_(boost::lexical_cast(socket_.remote_endpoint())) { #ifdef CROW_ENABLE_DEBUG connectionCount ++; @@ -89,7 +91,7 @@ namespace crow } } - CROW_LOG_INFO << "Request: "<< this << " HTTP/" << parser_.http_major << "." << parser_.http_minor << ' ' + CROW_LOG_INFO << "Request: " << address_str_ << " " << this << " HTTP/" << parser_.http_major << "." << parser_.http_minor << ' ' << method_name(req.method) << " " << req.url; @@ -308,6 +310,7 @@ namespace crow std::string date_str_; boost::asio::deadline_timer deadline_; + std::string address_str_; }; } -- cgit v1.2.3-54-g00ecf