Navigation
API > API/Plugins > API/Plugins/ElectraBase > API/Plugins/ElectraBase/Utilities
References
| Module | ElectraBase |
| Header | /Engine/Plugins/Media/ElectraUtil/Source/ElectraBase/Public/Utilities/URLParser.h |
| Include | #include "Utilities/URLParser.h" |
Syntax
class FURL_RFC3986
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddQueryParameters
(
const FString& InQueryParameters, |
Appends or prepends additional query parameters. | |
| FString | Get
(
bool bIncludeQuery, |
Returns the full URL with or without query and fragment parts. Characters will be escaped if necessary. | |
| FString | GetFragment () |
Returns the fragment, if any, without the leading '#'. Escape sequences will already be decoded. | |
| FString | GetHost () |
Returns the host, if present. | |
| FString | Returns the last path component (the "filename"). | ||
| FString | GetPath
(
bool bIncludeQuery, |
Returns the path (no scheme or host) with or without query and fragment parts. Characters will be escaped if necessary. | |
| FString | GetPath () |
Returns the path. Escape sequences will already be decoded. | |
| void | GetPathComponents
(
TArray< FString >& OutPathComponents |
Returns the path as individual components. Like GetPath() the components will have escape sequences already decoded. | |
| FString | GetPort () |
Returns the port, if present. | |
| FString | GetQuery () |
Returns the entire query string, if any, without the leading '?'. Escape sequences will still be present! | |
| void | GetQueryParams
(
TArray< FQueryParam >& OutQueryParams, |
Returns the given query parameter string as a list of name/value pairs. | |
| void | GetQueryParams
(
TArray< FQueryParam >& OutQueryParams, |
Returns the query parameters as a list of name/value pairs. | |
| FString | GetScheme () |
Returns the scheme, if present. Does not include the :// sequence. | |
| FString | GetStandardPortForScheme
(
const FString& InScheme, |
Returns the standard port for the given scheme. An empty string is returned if none is known. | |
| bool | HasSameOriginAs
(
const FURL_RFC3986& Other |
Returns if this URL has the same origin as another one as per RFC 6454. | |
| bool | IsAbsolute () |
Returns whether or not this URL is absolute (the scheme not being empty). | |
| bool | Parses the given URL. | ||
| FURL_RFC3986 & | ResolveAgainst
(
const FString& InParentURL |
Resolves this URL (which should be relative) against the specified URL. | |
| FURL_RFC3986 & | ResolveWith
(
const FString& InChildURL |
Resolves a relative URL against this one. | |
| void | SetQueryParams
(
const TArray< FQueryParam >& InQueryParams |
Replaces query parameters in the URL. | |
| bool | Decodes XX escaped sequences into their original characters. Appends to the output. Hence in and out must not be the same. | ||
| bool | Encodes characters not permitted in a URL into XX escaped sequences. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FQueryParam |