Navigation
API > API/Runtime > API/Runtime/HttpServer
| Name | FHttpServerResponse |
| Type | struct |
| Header File | /Engine/Source/Runtime/Online/HTTPServer/Public/HttpServerResponse.h |
| Include Path | #include "HttpServerResponse.h" |
Syntax
struct FHttpServerResponse
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Constructor | HttpServerResponse.h | ||
FHttpServerResponse
(
TArray< uint8 >&& InBody |
Constructor Facilitates in-place body construction | HttpServerResponse.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Body | TArray< uint8 > | Http Body Content | HttpServerResponse.h | |
| Code | EHttpServerResponseCodes | Http Response Code | HttpServerResponse.h | |
| Headers | TMap< FString, TArray< FString > > | Http Headers | HttpServerResponse.h | |
| HttpVersion | HttpVersion::EHttpServerHttpVersion | Http protocol version | HttpServerResponse.h |
Functions
Public
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TUniquePtr< FHttpServerResponse > Create
(
const FString& Text, |
Creates an FHttpServerResponse from a string | HttpServerResponse.h | |
static TUniquePtr< FHttpServerResponse > Create
(
const FUtf8String& Text, |
Creates an FHttpServerResponse from a string | HttpServerResponse.h | |
static TUniquePtr< FHttpServerResponse > Create
(
FUtf8String&& Text, |
Creates an FHttpServerResponse from a string | HttpServerResponse.h | |
static TUniquePtr< FHttpServerResponse > Create
(
TArray< uint8 >&& RawBytes, |
Creates an FHttpServerResponse from a raw byte buffer | HttpServerResponse.h | |
static TUniquePtr< FHttpServerResponse > Create
(
const TArrayView< uint8 >& RawBytes, |
Creates an FHttpServerResponse from a raw byte buffer | HttpServerResponse.h | |
static TUniquePtr< FHttpServerResponse > Error
(
EHttpServerResponseCodes ResponseCode, |
Creates an FHttpServerResponse with the caller-supplied response and error codes | HttpServerResponse.h | |
static TUniquePtr< FHttpServerResponse > Ok() |
Creates an FHttpServerResponse 204 | HttpServerResponse.h |