diff options
| author | Wladimir J. van der Laan <[email protected]> | 2018-08-21 17:27:36 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2018-08-21 17:33:12 +0200 |
| commit | df29abf673f3b6f27dc8723657eab737dd188c03 (patch) | |
| tree | 701b6c9bbebc49ee60508a5fd66e3b4f5746d013 /src/httpserver.h | |
| parent | Merge #13529: Use new Qt5 connect syntax (diff) | |
| parent | http: Add const modifier to HTTPRequest methods (diff) | |
| download | discoin-df29abf673f3b6f27dc8723657eab737dd188c03.tar.xz discoin-df29abf673f3b6f27dc8723657eab737dd188c03.zip | |
Merge #14006: Add const modifier to HTTPRequest methods
18c49eb8877d8b11f763083a79a7b8250e060106 http: Add const modifier to HTTPRequest methods (João Barbosa)
Pull request description:
Tree-SHA512: 233617425ff3abc7419817a95337056c190640197c6c4d8b1a0810967d960c0968d02967e16ffbc1af1a2b3117fdc98722bf05e270504d59548e6838fa7f5ffb
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 fa7cc4a5d..67c6a8831 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. |