Commit a9a828b3 authored by James Allenby's avatar James Allenby
Browse files

Pass HTTP request variables by reference and enforce const

parent 47fa7b38
......@@ -25,11 +25,11 @@ namespace JAMP
HTTPRequest(std::string);
// Private member variable accessors
auto Method() { return m_method; } /* Returns the request method */
auto URI() { return m_uri; } /* Returns the request URI */
auto HTTPVersion() { return m_http_version; } /* Returns the request HTTP version */
auto HeaderFields() { return m_fields; } /* Returns the request header fields */
auto Message() { return m_message; } /* Returns the request message */
const auto& Method() { return m_method; } /* Returns the request method */
const auto& URI() { return m_uri; } /* Returns the request URI */
const auto& HTTPVersion() { return m_http_version; } /* Returns the request HTTP version */
const auto& HeaderFields() { return m_fields; } /* Returns the request header fields */
const auto& Message() { return m_message; } /* Returns the request message */
std::string Serialize();
void Deserialize(const std::string);
......
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