diff options
author | Chris Wilson <chris+github@qwirx.com> | 2015-07-31 06:40:09 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2015-07-31 06:40:09 +0000 |
commit | d72425de59db7d94dd51cca7988c3d025426925b (patch) | |
tree | 2545bc5321aedcfd962422277697e39f1f552ecc /lib/httpserver/HTTPRequest.h | |
parent | 762af2a462607258817fde3dc919ee7db5d1bcf0 (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.h | 1 |
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 |