xo-umbrella2/xo-websock/include/xo/websock/EndpointUtil.hpp
Roland Conybeare 578c0ed658 git subrepo clone (merge) git@github.com:Rconybea/xo-websock.git xo-websock
subrepo:
  subdir:   "xo-websock"
  merged:   "c6eec3cd"
upstream:
  origin:   "git@github.com:Rconybea/xo-websock.git"
  branch:   "main"
  commit:   "c6eec3cd"
git-subrepo:
  version:  "0.4.9"
  origin:   "???"
  commit:   "???"
2026-06-06 22:37:35 -04: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 */