HDK
|
#include <NET_UrlHandler.h>
Public Member Functions | |
NET_BaseUrlHandler (const UT_StringRef &path, bool allows_partial=false) | |
NET_BaseUrlHandler (const UT_StringRef &path, const UT_StringArray &methods, bool allows_partial=false) | |
virtual | ~NET_BaseUrlHandler ()=default |
virtual void | handle (NET_HTTPRequest &req, NET_WebResponse &resp)=0 |
const UT_StringHolder & | path () const |
void | addMethod (const UT_StringRef &method) |
void | removeMethod (const UT_StringRef &method) |
bool | canHandleMethod (const UT_StringRef &method) const |
Public Attributes | |
bool | myAllowsPartial |
Definition at line 28 of file NET_UrlHandler.h.
NET_BaseUrlHandler::NET_BaseUrlHandler | ( | const UT_StringRef & | path, |
bool | allows_partial = false |
||
) |
NET_BaseUrlHandler::NET_BaseUrlHandler | ( | const UT_StringRef & | path, |
const UT_StringArray & | methods, | ||
bool | allows_partial = false |
||
) |
|
virtualdefault |
void NET_BaseUrlHandler::addMethod | ( | const UT_StringRef & | method | ) |
bool NET_BaseUrlHandler::canHandleMethod | ( | const UT_StringRef & | method | ) | const |
|
pure virtual |
Implemented in NET_UrlFileHandler, NET_APIUrlHandler, and NET_UrlHandler.
|
inline |
Definition at line 40 of file NET_UrlHandler.h.
void NET_BaseUrlHandler::removeMethod | ( | const UT_StringRef & | method | ) |
bool NET_BaseUrlHandler::myAllowsPartial |
Definition at line 49 of file NET_UrlHandler.h.