From bf01bb84b6b96fe2cba529f588e29a9038c0daf6 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 14 Mar 2011 00:57:05 +0900 Subject: Added JSONP support. Callback query parameter is "jsoncallback". --- src/HttpServer.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/HttpServer.cc') diff --git a/src/HttpServer.cc b/src/HttpServer.cc index 15016501..31893c95 100644 --- a/src/HttpServer.cc +++ b/src/HttpServer.cc @@ -137,6 +137,11 @@ std::string HttpServer::getBody() const return lastBody_.str(); } +const std::string& HttpServer::getMethod() const +{ + return lastRequestHeader_->getMethod(); +} + const std::string& HttpServer::getRequestPath() const { return lastRequestHeader_->getRequestPath(); -- cgit