#include <endpointFunction.hpp>
Public Member Functions | |
EndpointParamsFunc ()=delete | |
EndpointParamsFunc (std::function< anch::rest::Response(const anch::rest::Request &, T...)> func) | |
virtual | ~EndpointParamsFunc () |
virtual anch::rest::Response | execute (const anch::rest::Request &request) override |
Public Member Functions inherited from anch::rest::EndpointFunc | |
virtual | ~EndpointFunc () |
EndpointFunc implementation
Manage endpoint execution with path parameter(s) or body
T | the parameter types |
|
delete |
Forbids EndpointParamsFunc default constructor
anch::rest::EndpointParamsFunc< T >::EndpointParamsFunc | ( | std::function< anch::rest::Response(const anch::rest::Request &, T...)> | func | ) |
EndpointParamsFunc constructor
func | the function to execute for this endpoint |
|
virtual |
EndpointParamsFunc destructor
|
overridevirtual |
Bind parameters and execute HTTP request
request | the request |
Implements anch::rest::EndpointFunc.