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:
parent
41e1d35c7a
commit
da2484b0d4
9 changed files with 31 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue