Navigation
API > API/Runtime > API/Runtime/HTTP > API/Runtime/HTTP/FGenericPlatformHttp
Description
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
| Name | GetUrlPath |
| Type | function |
| Header File | /Engine/Source/Runtime/Online/HTTP/Public/GenericPlatform/GenericPlatformHttp.h |
| Include Path | #include "GenericPlatform/GenericPlatformHttp.h" |
| Source | /Engine/Source/Runtime/Online/HTTP/Private/GenericPlatform/GenericPlatformHttp.cpp |
static FString GetUrlPath
(
const FStringView Url,
const bool bIncludeQueryString,
const bool bIncludeFragment
)
Parameters
| Name | Remarks |
|---|---|
| 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) |