FGenericPlatformHttp

Platform specific Http implementations Intended usage is to use FPlatformHttp instead of [FGenericPlatformHttp](API\Runtime\HTTP\GenericPlatform\FGenericPlatformHttp)

Windows
MacOS
Linux

Inheritance Hierarchy

FGenericPlatformHttp

FHoloLensHttp

FUnixPlatformHttp

References

Module

HTTP

Header

/Engine/Source/Runtime/Online/HTTP/Public/GenericPlatform/GenericPlatformHttp.h

Include

#include "GenericPlatform/GenericPlatformHttp.h"

Syntax

class FGenericPlatformHttp

Remarks

Platform specific Http implementations Intended usage is to use FPlatformHttp instead of FGenericPlatformHttp

Functions

Name Description

Public function Static

IHttpRequest...

 

ConstructRequest()

Creates a new Http request instance for the current platform

Public function Static

FHttpManager...

 

CreatePlatformHttpManager()

Creates a platform-specific HTTP manager.

Public function Static

FString

 

EscapeUserAgentString

(
    const FString& UnescapedString
)

Public function Static

FString

 

GetDefaultUserAgent()

Returns the default User-Agent string to use in HTTP requests.

Public function Static

FString

 

GetMimeType

(
    const FString& FilePath
)

Get the mime type for the file

Public function Static

TOptional< F...

 

GetOperatingSystemProxyAddress()

Get the proxy address specified by the operating system

Public function Static

FString

 

GetUrlDomain

(
    const FString& Url
)

Returns the domain portion of the URL, e.g., "a.b.c" of "http://a.b.c/d"

Public function Static

FString

 

HtmlEncode

(
    const FString& UnencodedString
)

Returns the < &gt...etc encoding for strings between HTML elements.

Public function Static

void

 

Init()

Platform initialization step

Public function Static

bool

 

IsOperatingSystemProxyInformationSupported()

Check if getting proxy information from the current operating system is supported Useful for "Network Settings" type pages.

Public function Static

bool

 

IsURLEncoded

(
    const TArray< uint8 >& Payload
)

Helper function for checking if a byte array is in URL encoded format.

Public function Static

void

 

Shutdown()

Platform shutdown step

Public function Static

FString

 

UrlDecode

(
    const FString& EncodedString
)

Returns a decoded version of the percent-encoded passed in string

Public function Static

FString

 

UrlEncode

(
    const FString& UnencodedString
)

Returns a percent-encoded version of the passed in string

Public function Static

bool

 

UsesThreadedHttp()

Check if a platform uses the HTTP thread

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