2
3
4
5
39 m_Parameters[name] = value;
46 m_Headers[name] = value;
53 if (m_Headers.find(name) == m_Headers.end())
56 ss << name <<
" is not found in Http Header";
58 SPICES_CORE_WARN(ss.str())
62 return m_Headers.find(name)->second;
72 m_Parameters.swap(rhs.m_Parameters);
73 m_Headers.swap(rhs.m_Headers);
#define SPICES_PROFILE_ZONE
Version m_Version
Http Version.
void Swap(HttpRequest &rhs)
Swap with another HttpRequest.
void AddHeader(const std::string &name, const std::string &value)
Add a Header to this HttpRequest.
void SetMethod(Method method)
Set Http Method.
void AddParameter(const std::string &name, const std::string &value)
Add a Parameter to this HttpRequest.
std::string m_Path
Http Path.
Method m_Method
Http Method.
std::string GetHeader(const std::string &name) const
Get a Header from this HttpRequest.
void SetVersion(Version version)
Set Http Version.
void SetPath(const std::string &path)
Set Http path.