Repository: trafficserver Updated Branches: refs/heads/master 10be14487 -> bb685f9e4
atscppapi: Added functionality to return request body in AsyncHttpFetch Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/bb685f9e Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/bb685f9e Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/bb685f9e Branch: refs/heads/master Commit: bb685f9e4d26b5bc9010f55bfc985c27a2059f23 Parents: 10be144 Author: Manjesh Nilange <manjeshnila...@yahoo.com> Authored: Tue Aug 19 13:09:03 2014 -0700 Committer: Manjesh Nilange <manjeshnila...@yahoo.com> Committed: Tue Aug 19 13:09:03 2014 -0700 ---------------------------------------------------------------------- lib/atscppapi/src/AsyncHttpFetch.cc | 4 ++++ lib/atscppapi/src/include/atscppapi/AsyncHttpFetch.h | 5 +++++ 2 files changed, 9 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/bb685f9e/lib/atscppapi/src/AsyncHttpFetch.cc ---------------------------------------------------------------------- diff --git a/lib/atscppapi/src/AsyncHttpFetch.cc b/lib/atscppapi/src/AsyncHttpFetch.cc index 5e5122b..34d77f4 100644 --- a/lib/atscppapi/src/AsyncHttpFetch.cc +++ b/lib/atscppapi/src/AsyncHttpFetch.cc @@ -178,6 +178,10 @@ const Url &AsyncHttpFetch::getRequestUrl() const { return state_->request_.getUrl(); } +const string &AsyncHttpFetch::getRequestBody() const { + return state_->request_body_; +} + const Response &AsyncHttpFetch::getResponse() const { return state_->response_; } http://git-wip-us.apache.org/repos/asf/trafficserver/blob/bb685f9e/lib/atscppapi/src/include/atscppapi/AsyncHttpFetch.h ---------------------------------------------------------------------- diff --git a/lib/atscppapi/src/include/atscppapi/AsyncHttpFetch.h b/lib/atscppapi/src/include/atscppapi/AsyncHttpFetch.h index 1ddd235..161b957 100644 --- a/lib/atscppapi/src/include/atscppapi/AsyncHttpFetch.h +++ b/lib/atscppapi/src/include/atscppapi/AsyncHttpFetch.h @@ -71,6 +71,11 @@ public: const Url &getRequestUrl() const; /** + * @return Non-mutable reference to the request body. + */ + const std::string &getRequestBody() const; + + /** * Used to extract the response after request completion. * * @return Non-mutable reference to the response.