mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
http: Add const modifier to HTTPRequest methods
This commit is contained in:
parent
df660aa771
commit
18c49eb887
2 changed files with 8 additions and 8 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue