|
- #pragma once
-
- #include "request.h"
-
- namespace cppmicrohttpd
- {
-
- request::request(
- MHD_Connection * const p_connection,
- const std::string& p_url,
- const std::string& p_method,
- const std::string& p_version)
- : connection(p_connection)
- , url (p_url)
- , method (p_method)
- , version (p_version)
- { }
-
- template<typename T_exception>
- void request::set_error(const T_exception& p_error)
- {
- if (!error)
- error.reset(new T_exception(p_error));
- }
-
- }
|