http: Add const modifier to HTTPRequest methods

This commit is contained in:
João Barbosa
2018-08-17 15:33:02 +01:00
parent df660aa771
commit 18c49eb887
2 changed files with 8 additions and 8 deletions

View File

@@ -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.