FHttpServerResponse::Create

Creates an [FHttpServerResponse](API\Runtime\HttpServer\FHttpServerResponse) from a string

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
(
    const FString & Text,
    FString ContentType
)

Remarks

Creates an FHttpServerResponse from a string

Returns

A unique pointer to an initialized response object

Parameters

Parameter

Description

Text

The text 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