refactor: move impl into .cpp + fix include paths
This commit is contained in:
parent
9a23b29c12
commit
38b8f34b28
9 changed files with 123 additions and 50 deletions
27
src/webutil/HttpEndpointDescr.cpp
Normal file
27
src/webutil/HttpEndpointDescr.cpp
Normal 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 */
|
||||
Loading…
Add table
Add a link
Reference in a new issue