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