Navigation
API > API/Runtime > API/Runtime/HTTP > API/Runtime/HTTP/FGenericPlatformHttp
Description
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
| Name | GetUrlPort |
| 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 TOptional < uint16 > GetUrlPort
(
const FStringView Url
)
Parameters
| Name | Remarks |
|---|---|
| Url | The URL to parse for a Port |