summaryrefslogtreecommitdiff
path: root/src/HttpServer.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-03-14 00:57:05 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-03-14 00:57:05 +0900
commitbf01bb84b6b96fe2cba529f588e29a9038c0daf6 (patch)
tree929c8ad8e4ec3eebdae8ffd046f7990b9f6dccae /src/HttpServer.cc
parentfeb4e2e53a368baa64dffd5e2182204548fe86d5 (diff)
Added JSONP support. Callback query parameter is "jsoncallback".
Diffstat (limited to 'src/HttpServer.cc')
-rw-r--r--src/HttpServer.cc5
1 files changed, 5 insertions, 0 deletions
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();