aboutsummaryrefslogtreecommitdiff
path: root/src/httpserver.h
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2018-08-17 15:33:02 +0100
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2018-08-20 01:35:55 +0100
commit18c49eb8877d8b11f763083a79a7b8250e060106 (patch)
treeaa87db75b70db0b8c359d8baa3ca4cfdbc09e1eb /src/httpserver.h
parentdf660aa7717a6f4784e90535a13a95d82244565a (diff)
downloadbitcoin-18c49eb8877d8b11f763083a79a7b8250e060106.tar.xz
http: Add const modifier to HTTPRequest methods
Diffstat (limited to 'src/httpserver.h')
-rw-r--r--src/httpserver.h8
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.