#include <GenericPlatformHttp.h>
Platform specific Http implementations Intended usage is to use FPlatformHttp instead of FGenericPlatformHttp
◆ AddDefaultUserAgentPlatformComment()
| void FGenericPlatformHttp::AddDefaultUserAgentPlatformComment |
( |
const FString & |
Comment | ) |
|
|
static |
Add a comment to be included in the platform section of the default User-Agent string.
◆ AddDefaultUserAgentProjectComment()
| void FGenericPlatformHttp::AddDefaultUserAgentProjectComment |
( |
const FString & |
Comment | ) |
|
|
static |
Add a comment to be included in the project section of the default User-Agent string.
◆ ConstructRequest()
Creates a new Http request instance for the current platform
- Returns
- request object
◆ CreatePlatformHttpManager()
Creates a platform-specific HTTP manager.
- Returns
- nullptr if default implementation is to be used
◆ EscapeUserAgentString()
| FString FGenericPlatformHttp::EscapeUserAgentString |
( |
const FString & |
UnescapedString | ) |
|
|
static |
◆ GetDefaultUserAgent()
| FString FGenericPlatformHttp::GetDefaultUserAgent |
( |
| ) |
|
|
static |
Returns the default User-Agent string to use in HTTP requests. Requests that explicitly set the User-Agent header will not use this value.
The default User-Agent is built in the format "project/version (comments) platform/OS version (comments)"
- Returns
- the default User-Agent string that requests should use.
◆ GetDefaultUserAgentBuilder()
Gets a copy of the values used to build the default user agent string. Used for modifying default user agent values before sending HTTP requests.
◆ GetDefaultUserAgentVersion()
| uint32 FGenericPlatformHttp::GetDefaultUserAgentVersion |
( |
| ) |
|
|
static |
Get the version of the default user agent. The version is incremented any time the default user agent is changed. Used to invalidate any cached user agent value.
- Returns
- the current version of the default user agent.
◆ GetMimeType()
| FString FGenericPlatformHttp::GetMimeType |
( |
const FString & |
FilePath | ) |
|
|
static |
Get the mime type for the file
- Returns
- the mime type for the file.
◆ GetOperatingSystemProxyAddress()
| TOptional< FString > FGenericPlatformHttp::GetOperatingSystemProxyAddress |
( |
| ) |
|
|
static |
Utility for escaping a string used in the HTTP user agent. Removes disallowed characters.
- Returns
- the escaped string. Get the proxy address specified by the operating system
-
optional FString: If unset: we are unable to get information from the operating system. If set: the proxy address set by the operating system (may be blank)
◆ GetUrlBase()
| FString FGenericPlatformHttp::GetUrlBase |
( |
const FStringView |
Url | ) |
|
|
static |
Returns the base of the URL, e.g., "http://a.b.c:d" of "http://a.b.c:d/e"
- Parameters
-
| Url | the URL to return the base of |
- Returns
- the base of the specified URL
◆ GetUrlDomain()
| FString FGenericPlatformHttp::GetUrlDomain |
( |
const FStringView |
Url | ) |
|
|
static |
Returns the domain portion of the URL, e.g., "a.b.c" of "http://a.b.c:d/e"
- Parameters
-
| Url | the URL to return the domain of |
- Returns
- the domain of the specified URL
◆ GetUrlDomainAndPort()
| FString FGenericPlatformHttp::GetUrlDomainAndPort |
( |
const FStringView |
Url | ) |
|
|
static |
Returns the domain and port portion of the URL, e.g., "a.b.c:d" of "http://a.b.c:d/e"
- Parameters
-
| Url | the URL to return the domain and port of |
- Returns
- the domain and port of the specified URL
◆ GetUrlParameter()
Extract the URL-Decoded value of the specified ParameterName from Url. An unset return means the parameter was not present in Url, while an empty value means it was present, but had no value.
- Parameters
-
| Url | The URL to parse for ParameterName |
| ParameterName | The parameter name to look for |
- Returns
- If ParameterName was found, the string value of its value (in URL Decoded format), otherwise the return value is unset
◆ GetUrlPath()
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. If bIncludeFragment is set true, bIncludeQueryString must also be true
- Parameters
-
| Url | The URL to parse for a Path |
| bIncludeQueryString | include the URL's query string in the return value (if one is found) |
| bIncludeFragment | include the URL's fragement in the return value (if one is found) |
◆ GetUrlPort()
Extract the Port part of a URL, or an unset object if there was non specified. Example: "http://example.org:23/" would return 23, while "https://example.org/" would return an unset object
- Parameters
-
| Url | The URL to parse for a Port |
◆ HtmlEncode()
| FString FGenericPlatformHttp::HtmlEncode |
( |
const FStringView |
UnencodedString | ) |
|
|
static |
Returns the < >...etc encoding for strings between HTML elements.
- Parameters
-
| UnencodedString | The unencoded string to convert to html encoding. |
- Returns
- The html encoded string
◆ Init()
| void FGenericPlatformHttp::Init |
( |
| ) |
|
|
static |
Platform initialization step
◆ IsOperatingSystemProxyInformationSupported()
| bool FGenericPlatformHttp::IsOperatingSystemProxyInformationSupported |
( |
| ) |
|
|
static |
Check if getting proxy information from the current operating system is supported Useful for "Network Settings" type pages. GetProxyAddress may return an empty or populated string but that does not imply the operating system does or does not support proxies (or that it has been implemented here)
- Returns
- true if we are able to get proxy information from the current operating system, false if not
◆ IsSecureProtocol()
Check the protocol of the provided URL to determine if this is for a secure connection (HTTPS, WSS, etc)
- Parameters
-
| The | URL to check for a scheme |
- Returns
- True if secure, false if insecure, unset if unknown
◆ IsURLEncoded()
Helper function for checking if a byte array is in URL encoded format.
◆ Shutdown()
| void FGenericPlatformHttp::Shutdown |
( |
| ) |
|
|
static |
◆ ShutdownPlatformCustomSsl()
| static void FGenericPlatformHttp::ShutdownPlatformCustomSsl |
( |
| ) |
|
|
inlinestatic |
Platform shutdown custom ssl if supported
◆ UrlDecode()
| FString FGenericPlatformHttp::UrlDecode |
( |
const FStringView |
EncodedString | ) |
|
|
static |
Returns a decoded version of the percent-encoded passed in string
- Parameters
-
| EncodedString | The percent encoded string to convert to string |
- Returns
- The decoded string
◆ UrlEncode()
| FString FGenericPlatformHttp::UrlEncode |
( |
const FStringView |
UnencodedString | ) |
|
|
static |
Returns a percent-encoded version of the passed in string
- Parameters
-
| UnencodedString | The unencoded string to convert to percent-encoding |
- Returns
- The percent-encoded string
The documentation for this class was generated from the following files: