#include <HttpRouter.h>
|
| bool | Query (const TSharedPtr< FHttpServerRequest > &Request, const FHttpResultCallback &OnProcessingComplete) override |
| |
| FHttpRouteHandle | BindRoute (const FHttpPath &HttpPath, const EHttpServerRequestVerbs &RequestVerbs, const FHttpRequestHandler &Handler) override |
| |
| void | UnbindRoute (const FHttpRouteHandle &RouteHandle) override |
| |
| FDelegateHandle | RegisterRequestPreprocessor (FHttpRequestHandler RequestPreprocessor) override |
| |
| void | UnregisterRequestPreprocessor (const FDelegateHandle &RequestPreprocessorHandle) override |
| |
| FHttpRequestHandlerIterator | CreateRequestHandlerIterator (const TSharedPtr< FHttpServerRequest > &Request) const |
| |
| 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 |
| |
◆ 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.
Implements IHttpRouter.
◆ CreateRequestHandlerIterator()
Creates a request handler iterator to facilitate http routing
- Parameters
-
| Request | The basis request for which matching request handlers are found |
- Returns
- The instantiated FHttpRequestHandlerIterator
◆ 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.
Implements IHttpRouter.
◆ 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.
Implements IHttpRouter.
◆ UnbindRoute()
Unbinds the caller-supplied Route
- Parameters
-
| RouteHandle | The handle to the route to unbind (callers must retain from BindRoute) |
Implements IHttpRouter.
◆ UnregisterRequestPreprocessor()
| void FHttpRouter::UnregisterRequestPreprocessor |
( |
const FDelegateHandle & |
RequestPreprocessorHandle | ) |
|
|
overridevirtual |
Unregister a request preprocessor.
- Parameters
-
| RequestPreprocessorHandle | The handle to the preprocessor delegate to unregister. |
Implements IHttpRouter.
The documentation for this class was generated from the following files: