Boost C++ Libraries

PrevUpHomeNext

Struct uri_arg

boost::taar::mcp::uri_arg — Argument provider reading a {name} placeholder of a resource URI template.

Synopsis

// In header: <boost/taar/mcp/arg.hpp>


struct uri_arg {

  // public member functions
  explicit uri_arg(std::string, std::string = {});
  std::string const & name() const noexcept;
  std::string const & description() const noexcept;
  taar::result< std::string > 
  operator()(resource_call const &, matcher::context const &) const;
};

Description

uri_arg public member functions

  1. explicit uri_arg(std::string name, std::string description = {});
  2. std::string const & name() const noexcept;
  3. std::string const & description() const noexcept;
  4. taar::result< std::string > 
    operator()(resource_call const & c, matcher::context const &) const;

PrevUpHomeNext