#include <IHttpRouter.h>
|
| virtual bool | Query (const TSharedPtr< FHttpServerRequest > &Request, const FHttpResultCallback &OnProcessingComplete)=0 |
| |
| virtual FHttpRouteHandle | BindRoute (const FHttpPath &HttpPath, const EHttpServerRequestVerbs &HttpVerbs, const FHttpRequestHandler &Handler)=0 |
| |
| virtual void | UnbindRoute (const FHttpRouteHandle &RouteHandle)=0 |
| |
| virtual FDelegateHandle | RegisterRequestPreprocessor (FHttpRequestHandler RequestPreprocessor)=0 |
| |
| virtual void | UnregisterRequestPreprocessor (const FDelegateHandle &RequestPreprocessorHandle)=0 |
| |
| TSharedRef< IHttpRouter, Mode > | AsShared () |
| |
| TSharedRef< IHttpRouter const, Mode > | AsShared () const |
| |
| TSharedRef< SubobjectType, Mode > | AsSharedSubobject (SubobjectType *SubobjectPtr) const |
| |
| TWeakPtr< IHttpRouter, Mode > | AsWeak () |
| |
| TWeakPtr< IHttpRouter const, Mode > | AsWeak () const |
| |
| TWeakPtr< SubobjectType, Mode > | AsWeakSubobject (SubobjectType *SubobjectPtr) const |
| |
| void | UpdateWeakReferenceInternal (TSharedPtr< SharedPtrType, SharedPtrMode > const *InSharedPtr, OtherType *InObject) const |
| |
| void | UpdateWeakReferenceInternal (TSharedRef< SharedRefType, SharedPtrMode > const *InSharedRef, OtherType *InObject) const |
| |
| UE_FORCEINLINE_HINT bool | DoesSharedInstanceExist () const |
| |
◆ ~IHttpRouter()
| IHttpRouter::~IHttpRouter |
( |
| ) |
|
|
protectedvirtual |
◆ BindRoute()
Binds the caller-supplied Uri to the caller-supplied handler
- Parameters
-
| HttpPath | The respective http path to bind |
| HttpVerbs | The respective HTTP verbs to bind |
| Handler | The caller-defined closure to execute when the binding is invoked |
- Returns
- An FHttpRouteHandle on success, nullptr otherwise.
Implemented in FHttpRouter.
◆ Query()
Query the router with a request.
- Parameters
-
| Request | the request to route. |
| OnComplete | the callback called when |
- Returns
- An FHttpRouteHandle on success, nullptr otherwise.
Implemented in FHttpRouter.
◆ RegisterRequestPreprocessor()
Register a request preprocessor. Useful for cases where you want to drop or handle incoming requests before they are dispatched to their respective handler.
- Parameters
-
| RequestPreprocessor | The function called to process the incoming request. |
- Returns
- FDelegateHandle The handle to the delegate, used for unregistering preprocessors.
Implemented in FHttpRouter.
◆ UnbindRoute()
Unbinds the caller-supplied Route
- Parameters
-
| RouteHandle | The handle to the route to unbind (callers must retain from BindRoute) |
Implemented in FHttpRouter.
◆ UnregisterRequestPreprocessor()
Unregister a request preprocessor.
- Parameters
-
| RequestPreprocessorHandle | The handle to the preprocessor delegate to unregister. |
Implemented in FHttpRouter.
The documentation for this class was generated from the following files: