Platform specific Http implementations Intended usage is to use FPlatformHttp instead of FGenericPlatformHttp
更多...
|
| static IHttpRequest * | ConstructRequest () |
| | Creates a new Http request instance for the current platform 更多...
|
| |
| static FHttpManager * | CreatePlatformHttpManager () |
| | Creates a platform-specific HTTP manager. 更多...
|
| |
| static FString | GetDefaultUserAgent () |
| | Returns the default User-Agent string to use in HTTP requests. 更多...
|
| |
| static FString | GetMimeType (const FString &FilePath) |
| | Get the mime type for the file 更多...
|
| |
| static TOptional< FString > | GetOperatingSystemProxyAddress () |
| | Get the proxy address specified by the operating system 更多...
|
| |
| 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" 更多...
|
| |
| 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" 更多...
|
| |
| static TOptional< FString > | GetUrlParameter (const FStringView Url, const FStringView ParameterName) |
| | Extract the URL-Decoded value of the specified ParameterName from Url. 更多...
|
| |
| static FString | GetUrlPath (const FStringView Url, const bool bIncludeQueryString=false, const bool bIncludeFragment=false) |
| | 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. 更多...
|
| |
| static TOptional< uint16 > | GetUrlPort (const FStringView Url) |
| | Extract the Port part of a URL, or an unset object if there was non specified. 更多...
|
| |
| static FString | HtmlEncode (const FStringView UnencodedString) |
| | Returns the < >...etc encoding for strings between HTML elements. 更多...
|
| |
|
static void | Init () |
| | Platform initialization step
|
| |
| static bool | IsOperatingSystemProxyInformationSupported () |
| | Check if getting proxy information from the current operating system is supported Useful for "Network Settings" type pages. 更多...
|
| |
| 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) 更多...
|
| |
|
static bool | IsURLEncoded (const TArray< uint8 > &Payload) |
| | Helper function for checking if a byte array is in URL encoded format.
|
| |
|
static void | Shutdown () |
| | Platform shutdown step
|
| |
| static FString | UrlDecode (const FStringView EncodedString) |
| | Returns a decoded version of the percent-encoded passed in string 更多...
|
| |
| static FString | UrlEncode (const FStringView UnencodedString) |
| | Returns a percent-encoded version of the passed in string 更多...
|
| |
| static bool | UsesThreadedHttp () |
| | Check if a platform uses the HTTP thread 更多...
|
| |
Platform specific Http implementations Intended usage is to use FPlatformHttp instead of FGenericPlatformHttp
| static FString FGenericPlatformHttp::GetUrlPath |
( |
const FStringView |
Url, |
|
|
const bool |
bIncludeQueryString = false, |
|
|
const bool |
bIncludeFragment = false |
|
) |
| |
|
static |
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
- 参数
-
| 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) |