UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
HttpServerResponse.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3#include "Containers/Array.h"
5#include "Containers/Map.h"
7#include "CoreMinimal.h"
8#include "HAL/Platform.h"
11#include "Templates/UniquePtr.h"
13
14class FUtf8String;
15
17{
18public:
24
34
37
40
43
46
47public:
48
56 HTTPSERVER_API static TUniquePtr<FHttpServerResponse> Create(const FString& Text, const FString& ContentType);
57
65 HTTPSERVER_API static TUniquePtr<FHttpServerResponse> Create(const FUtf8String& Text, const FString& ContentType);
66
74 HTTPSERVER_API static TUniquePtr<FHttpServerResponse> Create(FUtf8String&& Text, const FString& ContentType);
75
84
93
100
109 HTTPSERVER_API static TUniquePtr<FHttpServerResponse> Error(EHttpServerResponseCodes ResponseCode, const FString& ErrorCode = TEXT(""), const FString& ErrorMessage = TEXT(""));
110};
111
112
#define TEXT(x)
Definition Platform.h:1272
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EHttpServerResponseCodes
Definition HttpServerConstants.h:6
UE_INTRINSIC_CAST UE_REWRITE constexpr std::remove_reference_t< T > && MoveTemp(T &&Obj) noexcept
Definition UnrealTemplate.h:520
Definition ArrayView.h:139
Definition Array.h:670
Definition UnrealString.h.inl:34
Definition UniquePtr.h:107
EHttpServerHttpVersion
Definition HttpServerHttpVersion.h:9
Definition HttpServerResponse.h:17
HttpVersion::EHttpServerHttpVersion HttpVersion
Definition HttpServerResponse.h:36
FHttpServerResponse(TArray< uint8 > &&InBody)
Definition HttpServerResponse.h:31
EHttpServerResponseCodes Code
Definition HttpServerResponse.h:39
TArray< uint8 > Body
Definition HttpServerResponse.h:45
TMap< FString, TArray< FString > > Headers
Definition HttpServerResponse.h:42
static HTTPSERVER_API TUniquePtr< FHttpServerResponse > Ok()
Definition HttpServerResponse.cpp:82
FHttpServerResponse()
Definition HttpServerResponse.h:22