HDK
|
#include <NET_WebAPIHandler.h>
Public Types | |
using | Callback = std::function< NET_WebResponse(NET_HTTPRequest &req, Args...)> |
![]() | |
using | ParamDefault = UT_Optional< UT_StringHolder > |
using | ParamIdx = unsigned |
using | ParamArray = UT_Array< NET_Param > |
Public Member Functions | |
NET_WebAPIHandlerImpl (const UT_StringHolder &name, const ParamArray ¶m_arr, Callback clb) | |
void | exec (NET_HTTPRequest &req, NET_WebResponse &resp) override |
void | exec (NET_HTTPRequest &req, NET_WebResponse &resp, UT_JSONValueArray *args, UT_JSONValueMap *kwargs) override |
operator bool () const | |
bool | isValid () const override |
![]() | |
virtual | ~NET_WebAPIHandler ()=default |
virtual void | call (NET_WebSocketAPIRequest &req, UT_JSONValueArray *args, UT_JSONValueMap *kwargs) |
const UT_StringHolder & | getName () const |
UT_Optional< ParamIdx > | getParamIndex (const UT_String &name) const |
UT_Optional< const UT_StringHolder & > | getParamDefault (const UT_String &name) const |
operator bool () const | |
Static Public Attributes | |
static constexpr std::size_t | Size = sizeof...(Args) |
Additional Inherited Members | |
![]() | |
NET_WebAPIHandler (const UT_StringHolder &name, const ParamArray ¶m_arr) | |
![]() | |
UT_StringHolder | myName |
ParamArray | myParams |
Definition at line 343 of file NET_WebAPIHandler.h.
using NET_WebAPIHandlerImpl< Args >::Callback = std::function<NET_WebResponse(NET_HTTPRequest &req, Args...)> |
Definition at line 348 of file NET_WebAPIHandler.h.
|
inline |
Definition at line 350 of file NET_WebAPIHandler.h.
|
inlineoverridevirtual |
Reimplemented from NET_WebAPIHandler.
Definition at line 359 of file NET_WebAPIHandler.h.
|
inlineoverridevirtual |
Reimplemented from NET_WebAPIHandler.
Definition at line 437 of file NET_WebAPIHandler.h.
|
inlineoverridevirtual |
Implements NET_WebAPIHandler.
Definition at line 470 of file NET_WebAPIHandler.h.
|
inline |
Definition at line 469 of file NET_WebAPIHandler.h.
|
static |
Definition at line 346 of file NET_WebAPIHandler.h.