#include <endpointFunction.hpp>
Public Member Functions | |
EndpointSimpleFunc ()=delete | |
EndpointSimpleFunc (std::function< anch::rest::Response(const anch::rest::Request &)> func) | |
virtual | ~EndpointSimpleFunc () |
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 without any path parameter nor body (useful for GET and DELETE HTTP requests).
|
delete |
Forbids EndpointSimpleFunc default constructor
anch::rest::EndpointSimpleFunc::EndpointSimpleFunc | ( | std::function< anch::rest::Response(const anch::rest::Request &)> | func | ) |
EndpointSimpleFunc constructor
func | the function to execute |
|
virtual |
EndpointSimpleFunc destructor
|
overridevirtual |
Execute request with the underlying function
request | the request to execute |
Implements anch::rest::EndpointFunc.