FHttpServerResponse

Copyright Epic Games, Inc. All Rights Reserved.

Windows
MacOS
Linux

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

Name Description

Public variable

TArray< uint8 >

 

Body

Http Body Content

Public variable

EHttpServerResp...

 

Code

Http Response Code

Public variable

TMap< FString, ...

 

Headers

Http Headers

Public variable

HttpVersion::EH...

 

HttpVersion

Http protocol version

Constructors

Name Description

Public function

FHttpServerResponse()

Constructor

Public function

FHttpServerResponse

(
    TArray< uint8 >&& InBody
)

Constructor Facilitates in-place body construction

Functions

Name Description

Public function Static

TUniquePtr< ...

 

Create

(
    const FString& Text,
    FString ContentType
)

Creates an FHttpServerResponse from a string

Public function Static

TUniquePtr< ...

 

Create

(
    TArray< uint8 >&& RawBytes,
    FString ContentType
)

Creates an FHttpServerResponse from a raw byte buffer

Public function Static

TUniquePtr< ...

 

Create

(
    const TArrayView< uint8 >& RawByte...,
    FString ContentType
)

Creates an FHttpServerResponse from a raw byte buffer

Public function Static

TUniquePtr< ...

 

Error

(
    EHttpServerResponseCodes ResponseCo...,
    const FString& ErrorCode,
    const FString& ErrorMessage
)

Creates an FHttpServerResponse with the caller-supplied response and error codes

Public function Static

TUniquePtr< ...

 

Ok()

Creates an FHttpServerResponse 204

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss