Navigation
API > API/Runtime > API/Runtime/HTTP
Platform specific Http implementations Intended usage is to use FPlatformHttp instead of FGenericPlatformHttp
| Name | FGenericPlatformHttp |
| Type | class |
| Header File | /Engine/Source/Runtime/Online/HTTP/Public/GenericPlatform/GenericPlatformHttp.h |
| Include Path | #include "GenericPlatform/GenericPlatformHttp.h" |
Syntax
class FGenericPlatformHttp
Derived Classes
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void AddDefaultUserAgentPlatformComment
(
const FString& Comment |
Add a comment to be included in the platform section of the default User-Agent string. | GenericPlatform/GenericPlatformHttp.h | |
static void AddDefaultUserAgentProjectComment
(
const FString& Comment |
Add a comment to be included in the project section of the default User-Agent string. | GenericPlatform/GenericPlatformHttp.h | |
static IHttpRequest * ConstructRequest() |
Creates a new Http request instance for the current platform | GenericPlatform/GenericPlatformHttp.h | |
static FHttpManager * CreatePlatformHttpManager() |
Creates a platform-specific HTTP manager. | GenericPlatform/GenericPlatformHttp.h | |
| GenericPlatform/GenericPlatformHttp.h | |||
static FString GetDefaultUserAgent () |
Returns the default User-Agent string to use in HTTP requests. | GenericPlatform/GenericPlatformHttp.h | |
| Gets a copy of the values used to build the default user agent string. | GenericPlatform/GenericPlatformHttp.h | ||
static uint32 GetDefaultUserAgentVersion () |
Get the version of the default user agent. | GenericPlatform/GenericPlatformHttp.h | |
| Get the mime type for the file | GenericPlatform/GenericPlatformHttp.h | ||
| Utility for escaping a string used in the HTTP user agent. Removes disallowed characters. | GenericPlatform/GenericPlatformHttp.h | ||
static FString GetUrlBase
(
const FStringView Url |
Returns the base of the URL, e.g., "http://a.b.c:d" of "http://a.b.c:d/e" | GenericPlatform/GenericPlatformHttp.h | |
static FString GetUrlDomain
(
const FStringView Url |
Returns the domain portion of the URL, e.g., "a.b.c" of "http://a.b.c:d/e" | GenericPlatform/GenericPlatformHttp.h | |
static FString GetUrlDomainAndPort
(
const FStringView Url |
Returns the domain and port portion of the URL, e.g., "a.b.c:d" of "http://a.b.c:d/e" | GenericPlatform/GenericPlatformHttp.h | |
static TOptional< FString > GetUrlParameter
(
const FStringView Url, |
Extract the URL-Decoded value of the specified ParameterName from Url. | GenericPlatform/GenericPlatformHttp.h | |
static FString GetUrlPath
(
const FStringView Url, |
Extract the Path portion of a URL, optionally including the Query String, and optionally including the Fragment (when also including the query string.) The return value will always contain a leading forward slash, even if no path is found. | GenericPlatform/GenericPlatformHttp.h | |
static TOptional< uint16 > GetUrlPort
(
const FStringView Url |
Extract the Port part of a URL, or an unset object if there was non specified. | GenericPlatform/GenericPlatformHttp.h | |
static FString HtmlEncode
(
const FStringView UnencodedString |
Returns the < >...etc encoding for strings between HTML elements. | GenericPlatform/GenericPlatformHttp.h | |
static void Init() |
Platform initialization step | GenericPlatform/GenericPlatformHttp.h | |
static bool IsOperatingSystemProxyInformationSupported () |
Check if getting proxy information from the current operating system is supported Useful for "Network Settings" type pages. | GenericPlatform/GenericPlatformHttp.h | |
static TOptional< bool > IsSecureProtocol
(
const FStringView Url |
Check the protocol of the provided URL to determine if this is for a secure connection (HTTPS, WSS, etc) | GenericPlatform/GenericPlatformHttp.h | |
static bool IsURLEncoded
(
const TArray< uint8 >& Payload |
Helper function for checking if a byte array is in URL encoded format. | GenericPlatform/GenericPlatformHttp.h | |
static void Shutdown() |
Platform shutdown step | GenericPlatform/GenericPlatformHttp.h | |
static void ShutdownPlatformCustomSsl() |
Platform shutdown custom ssl if supported | GenericPlatform/GenericPlatformHttp.h | |
static FString UrlDecode
(
const FStringView EncodedString |
Returns a decoded version of the percent-encoded passed in string | GenericPlatform/GenericPlatformHttp.h | |
static FString UrlEncode
(
const FStringView UnencodedString |
Returns a percent-encoded version of the passed in string | GenericPlatform/GenericPlatformHttp.h |