Navigation
API > API/Runtime > API/Runtime/ExternalRpcRegistry > API/Runtime/ExternalRpcRegistry/UExternalRpcRegistrationComponen- > API/Runtime/ExternalRpcRegistry/UExternalRpcRegistrationComponen-/RegisterHttpCall-
References
| Module | ExternalRpcRegistry |
| Header | /Engine/Source/Runtime/ExternalRPCRegistry/Public/ExternalRpcRegistrationComponent.h |
| Include | #include "ExternalRpcRegistrationComponent.h" |
| Source | /Engine/Source/Runtime/ExternalRPCRegistry/Private/ExternalRpcRegistrationComponent.cpp |
void RegisterHttpCallback
(
FName RouteName,
const FHttpPath & HttpPath,
const EHttpServerRequestVerbs & RequestVerbs,
const FHttpRequestHandler & Handler,
bool bOverrideIfBound,
FString OptionalCategory,
FString OptionalContentType,
TArray < FExternalRpcArgumentDesc > OptionalInArguments
)
Remarks
Hooks up a given delegate to the assigned route for external access. Handles creation of FExternalRouteInfo from its core parts.
Parameters
| Name | Description |
|---|---|
| RouteName | The friendly name of the route - used frequently in gauntlet for easier use. |
| HttpPath | Desired route for this delegate. Will be appended onto http:// |
| RequestVerbs | Verbs that should be accepted on this route. |
| Handler | The function delegate to call when this route is accessed. |
| bOverrideIfBound | Whether or not this registry should override any previously registered delegate at this route. |
| OptionalCategory | An optional category that can be added for organizational purposes |
| OptionalContentType | The sort of content type that is expected for the request body |
| OptionalInArguments | A list of arguments expected by this route. Can be set to optional or mandatory. |