refactor: move impl into .cpp + fix include paths

This commit is contained in:
Roland Conybeare 2023-10-11 19:19:44 -04:00
commit 38b8f34b28
9 changed files with 123 additions and 50 deletions

View file

@ -0,0 +1,27 @@
/* @file HttpEndpointDescr.cpp */
#include "HttpEndpointDescr.hpp"
#include "xo/indentlog/print/tag.hpp"
#include "xo/indentlog/print/tostr.hpp"
namespace xo {
namespace web {
HttpEndpointDescr::HttpEndpointDescr(std::string uri_pattern,
HttpEndpointFn endpoint_fn)
: uri_pattern_{std::move(uri_pattern)},
endpoint_fn_{std::move(endpoint_fn)}
{}
void
HttpEndpointDescr::display(std::ostream & os) const {
os << "<HttpEndpointDescr" << xtag("uri_pattern", uri_pattern_) << ">";
} /*display*/
std::string
HttpEndpointDescr::display_string() const { return tostr(*this); }
} /*namespace web*/
} /*namespace xo*/
/* end HttpEndpointDescr.cpp */