FHttpModule::AddDefaultHeader

Add a default header to be appended to future requests If a request already specifies this header, then the defaulted version will not be used

Windows
MacOS
Linux

References

Module

HTTP

Header

/Engine/Source/Runtime/Online/HTTP/Public/HttpModule.h

Include

#include "HttpModule.h"

Syntax

void AddDefaultHeader
(
    const FString & HeaderName,
    const FString & HeaderValue
)

Remarks

Add a default header to be appended to future requests If a request already specifies this header, then the defaulted version will not be used

Parameters

Parameter

Description

HeaderName

Name of the header (e.g., "Content-Type")

HeaderValue

Value of the header

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