xo-umbrella2/xo-websock/include/xo/websock/EndpointUtil.hpp
Roland Conybeare dd1a6b1afc Add 'xo-websock/' from commit '57bf06a68f'
git-subtree-dir: xo-websock
git-subtree-mainline: 97eefaea22
git-subtree-split: 57bf06a68f
2025-05-11 15:08:51 -05:00

26 lines
640 B
C++

/* file EndpointUtil.hpp
*
* author: Roland Conybeare, Sep 2022
*/
#pragma once
#include <string>
namespace xo {
namespace web {
class EndpointUtil {
public:
/* find fixed prefix for a URI pattern.
* patterns are used with both http endpoints (see DynamicEndpoint),
* and stream endpoints (see StreamEndpoint)
*
* e.g. stem("/dyn/uls/${ulticker}/snap") => "/dyn/uls/"
*/
static std::string stem(std::string const & pattern);
}; /*EndpointUtil*/
} /*namespace web*/
} /*namespace xo*/
/* end EndpointUtil.hpp */