FHttpServerResponse::Create

Creates an [FHttpServerResponse](API\Runtime\HttpServer\FHttpServerResponse) from a raw byte buffer

Windows
MacOS
Linux

References

Module

HttpServer

Header

/Engine/Source/Runtime/Online/HTTPServer/Public/HttpServerResponse.h

Include

#include "HttpServerResponse.h"

Source

/Engine/Source/Runtime/Online/HTTPServer/Private/HttpServerResponse.cpp

Syntax

static TUniquePtr< FHttpServerResponse > Create
(
    TArray< uint8 > && RawBytes,
    FString ContentType
)

Remarks

Creates an FHttpServerResponse from a raw byte buffer

Returns

A unique pointer to an initialized response object

Parameters

Parameter

Description

RawBytes

The byte buffer to serialize

ContentType

The HTTP response content type

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