Navigation
API > API/Runtime > API/Runtime/HttpServer > API/Runtime/HttpServer/FHttpServerResponse
Overloads
| 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 |
Create(const FString &, const FString &)
Description
Creates an FHttpServerResponse from a string
| Name | Create |
| Type | function |
| Header File | /Engine/Source/Runtime/Online/HTTPServer/Public/HttpServerResponse.h |
| Include Path | #include "HttpServerResponse.h" |
| Source | /Engine/Source/Runtime/Online/HTTPServer/Private/HttpServerResponse.cpp |
static TUniquePtr< FHttpServerResponse > Create
(
const FString & Text,
const FString & ContentType
)
A unique pointer to an initialized response object
Parameters
| Name | Remarks |
|---|---|
| Text | The text to serialize |
| ContentType | The HTTP response content type |
Create(const FUtf8String &, const FString &)
Description
Creates an FHttpServerResponse from a string
| Name | Create |
| Type | function |
| Header File | /Engine/Source/Runtime/Online/HTTPServer/Public/HttpServerResponse.h |
| Include Path | #include "HttpServerResponse.h" |
| Source | /Engine/Source/Runtime/Online/HTTPServer/Private/HttpServerResponse.cpp |
static TUniquePtr< FHttpServerResponse > Create
(
const FUtf8String & Text,
const FString & ContentType
)
A unique pointer to an initialized response object
Parameters
| Name | Remarks |
|---|---|
| Text | The text to serialize |
| ContentType | The HTTP response content type |
Create(FUtf8String &&, const FString &)
Description
Creates an FHttpServerResponse from a string
| Name | Create |
| Type | function |
| Header File | /Engine/Source/Runtime/Online/HTTPServer/Public/HttpServerResponse.h |
| Include Path | #include "HttpServerResponse.h" |
| Source | /Engine/Source/Runtime/Online/HTTPServer/Private/HttpServerResponse.cpp |
static TUniquePtr< FHttpServerResponse > Create
(
FUtf8String && Text,
const FString & ContentType
)
A unique pointer to an initialized response object
Parameters
| Name | Remarks |
|---|---|
| Text | The text to serialize |
| ContentType | The HTTP response content type |
Create(TArray< uint8 > &&, FString)
Description
Creates an FHttpServerResponse from a raw byte buffer
| Name | Create |
| Type | function |
| Header File | /Engine/Source/Runtime/Online/HTTPServer/Public/HttpServerResponse.h |
| Include Path | #include "HttpServerResponse.h" |
| Source | /Engine/Source/Runtime/Online/HTTPServer/Private/HttpServerResponse.cpp |
static TUniquePtr< FHttpServerResponse > Create
(
TArray< uint8 > && RawBytes,
FString ContentType
)
A unique pointer to an initialized response object
Parameters
| Name | Remarks |
|---|---|
| RawBytes | The byte buffer to serialize |
| ContentType | The HTTP response content type |
Create(const TArrayView< uint8 > &, FString)
Description
Creates an FHttpServerResponse from a raw byte buffer
| Name | Create |
| Type | function |
| Header File | /Engine/Source/Runtime/Online/HTTPServer/Public/HttpServerResponse.h |
| Include Path | #include "HttpServerResponse.h" |
| Source | /Engine/Source/Runtime/Online/HTTPServer/Private/HttpServerResponse.cpp |
static TUniquePtr< FHttpServerResponse > Create
(
const TArrayView< uint8 > & RawBytes,
FString ContentType
)
A unique pointer to an initialized response object
Parameters
| Name | Remarks |
|---|---|
| RawBytes | The byte buffer view to serialize |
| ContentType | The HTTP response content type |