summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-15 18:39:24 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-15 18:39:24 +0000
commit496f40165de330eed3dc344c1223e182ae5f6419 (patch)
tree7f6953e8b14d37fd1a90ad39d23f8e26c47eff58
parenta077dd4af061e94c0ee5f7a7f6b32363017f84b5 (diff)
Comments
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5262 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/httpd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/httpd.h b/src/modules/httpd.h
index 7738e3fe4..0fb917c55 100644
--- a/src/modules/httpd.h
+++ b/src/modules/httpd.h
@@ -34,6 +34,7 @@ class HTTPRequest : public classbase
* @param hdr The headers sent with the request
* @param opaque An opaque pointer used internally by m_httpd, which you must pass back to the module in your reply.
* @param ip The IP address making the web request.
+ * @param pdata The post data (content after headers) received with the request, up to Content-Length in size
*/
HTTPRequest(const std::string &request_type, const std::string &uri, std::stringstream* hdr, void* opaque, const std::string &ip, const std::string &pdata)
: type(request_type), document(uri), ipaddr(ip), postdata(pdata), headers(hdr), sock(opaque)
@@ -49,6 +50,10 @@ class HTTPRequest : public classbase
return headers;
}
+ /** Get the post data (request content).
+ * All post data will be returned, including carriage returns and linefeeds.
+ * @return The postdata
+ */
std::string& GetPostData()
{
return postdata;