Navigation
API > API/Runtime > API/Runtime/HTTP > API/Runtime/HTTP/GenericPlatform
Inheritance Hierarchy
- FGenericPlatformHttp
- 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
| Type | Name | Description | |
|---|---|---|---|
| void | AddDefaultUserAgentPlatformComment
(
const FString& Comment |
Add a comment to be included in the platform section of the default User-Agent string. | |
| void | AddDefaultUserAgentProjectComment
(
const FString& Comment |
Add a comment to be included in the project section of the default User-Agent string. | |
| IHttpRequest * | Creates a new Http request instance for the current platform | ||
| FHttpManager * | Creates a platform-specific HTTP manager. | ||
| FString | EscapeUserAgentString
(
const FString& UnescapedString |
||
| FString | Returns the default User-Agent string to use in HTTP requests. | ||
| FDefaultUserAgentBuilder | Gets a copy of the values used to build the default user agent string. | ||
| uint32 | Get the version of the default user agent. | ||
| FString | GetMimeType
(
const FString& FilePath |
Get the mime type for the file | |
| TOptional< FString > | Utility for escaping a string used in the HTTP user agent. Removes disallowed characters. | ||
| FString | GetUrlDomain
(
const FStringView Url |
Returns the domain portion of the URL, e.g., "a.b.c" of "http://a.b.c:d/e" | |
| 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" | |
| TOptional< FString > | GetUrlParameter
(
const FStringView Url, |
Extract the URL-Decoded value of the specified ParameterName from Url. | |
| 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. | |
| TOptional< uint16 > | GetUrlPort
(
const FStringView Url |
Extract the Port part of a URL, or an unset object if there was non specified. | |
| FString | HtmlEncode
(
const FStringView UnencodedString |
Returns the < >...etc encoding for strings between HTML elements. | |
| void | Init () |
Platform initialization step | |
| bool | Check if getting proxy information from the current operating system is supported Useful for "Network Settings" type pages. | ||
| 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) | |
| bool | IsURLEncoded
(
const TArray< uint8 >& Payload |
Helper function for checking if a byte array is in URL encoded format. | |
| void | Shutdown () |
Platform shutdown step | |
| FString | UrlDecode
(
const FStringView EncodedString |
Returns a decoded version of the percent-encoded passed in string | |
| FString | UrlEncode
(
const FStringView UnencodedString |
Returns a percent-encoded version of the passed in string | |
| bool | Check if a platform uses the HTTP thread |