diff options
Diffstat (limited to 'src/httpserver.h')
-rw-r--r-- | src/httpserver.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/httpserver.h b/src/httpserver.h index fa7cc4a5d3..67c6a88314 100644 --- a/src/httpserver.h +++ b/src/httpserver.h @@ -74,21 +74,21 @@ public: /** Get requested URI. */ - std::string GetURI(); + std::string GetURI() const; /** Get CService (address:ip) for the origin of the http request. */ - CService GetPeer(); + CService GetPeer() const; /** Get request method. */ - RequestMethod GetRequestMethod(); + RequestMethod GetRequestMethod() const; /** * Get the request header specified by hdr, or an empty string. * Return a pair (isPresent,string). */ - std::pair<bool, std::string> GetHeader(const std::string& hdr); + std::pair<bool, std::string> GetHeader(const std::string& hdr) const; /** * Read request body. |