summaryrefslogtreecommitdiff
path: root/lib/httpserver/HTTPRequest.h
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2015-07-31 06:40:09 +0000
committerChris Wilson <chris+github@qwirx.com>2015-07-31 06:40:09 +0000
commitd72425de59db7d94dd51cca7988c3d025426925b (patch)
tree2545bc5321aedcfd962422277697e39f1f552ecc /lib/httpserver/HTTPRequest.h
parent762af2a462607258817fde3dc919ee7db5d1bcf0 (diff)
Add utility methods to HTTPRequest and HTTPResponse classes.
Allow getting method name of an HTTPRequest, and connection open/closed status of an HTTPResponse.
Diffstat (limited to 'lib/httpserver/HTTPRequest.h')
-rw-r--r--lib/httpserver/HTTPRequest.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/httpserver/HTTPRequest.h b/lib/httpserver/HTTPRequest.h
index 25effb70..80699e3b 100644
--- a/lib/httpserver/HTTPRequest.h
+++ b/lib/httpserver/HTTPRequest.h
@@ -77,6 +77,7 @@ public:
//
// --------------------------------------------------------------------------
enum Method GetMethod() const {return mMethod;}
+ std::string GetMethodName() const;
const std::string &GetRequestURI() const {return mRequestURI;}
// Note: the HTTPRequest generates and parses the Host: header