Unverified Commit ae146fa7 authored by Igor [hyperxor]'s avatar Igor [hyperxor] Committed by GitHub

Fix issue #798 - Part 2: Add getting body by const reference (#850)

parent ae0da38c
......@@ -83,7 +83,8 @@ public:
Version version() const;
Code code() const;
std::string body() const;
const std::string &body() const;
std::string body();
const CookieJar &cookies() const;
CookieJar &cookies();
......
......@@ -537,7 +537,9 @@ Version Message::version() const { return version_; }
Code Message::code() const { return code_; }
std::string Message::body() const { return body_; }
const std::string &Message::body() const { return body_; }
std::string Message::body() { return body_; }
const Header::Collection &Message::headers() const { return headers_; }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment