diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-03-14 00:57:05 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-03-14 00:57:05 +0900 |
| commit | bf01bb84b6b96fe2cba529f588e29a9038c0daf6 (patch) | |
| tree | 929c8ad8e4ec3eebdae8ffd046f7990b9f6dccae /src/HttpServer.cc | |
| parent | feb4e2e53a368baa64dffd5e2182204548fe86d5 (diff) | |
Added JSONP support. Callback query parameter is "jsoncallback".
Diffstat (limited to 'src/HttpServer.cc')
| -rw-r--r-- | src/HttpServer.cc | 5 |
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(); |
