1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2025-10-18 15:29:24 +00:00

Use base_uri in the response

This commit is contained in:
King_DuckZ 2017-04-11 19:36:18 +01:00
commit da2484b0d4
9 changed files with 31 additions and 17 deletions

View file

@ -20,8 +20,9 @@
#include <cassert>
namespace tawashi {
Response::Response (Types parRespType, std::string&& parValue) :
Response::Response (Types parRespType, std::string&& parValue, const boost::string_ref& parBaseURI) :
m_resp_value(std::move(parValue)),
m_base_uri(parBaseURI),
m_resp_type(parRespType),
m_header_sent(false)
{
@ -60,4 +61,8 @@ namespace tawashi {
m_resp_type = parRespType;
m_resp_value = std::move(parValue);
}
const boost::string_ref& Response::base_uri() const {
return m_base_uri;
}
} //namespace tawashi