url.js
- Source:
- utils/url.js
Members
-
<static, constant> getAbsoluteURL
-
<static, constant> getFileExtension
-
<static, constant> isCrossOrigin
-
<static, constant> parseUrl
Type Definitions
-
url:URLObject
url.js
Get absolute version of relative URL. Used to tell flash correct URL.
Returns the extension of the passed file name. It will return an empty string if passed an invalid path.
Returns whether the url passed is a cross domain request or not.
Resolve and parse the elements of a URL.
Name | Type | Description |
---|---|---|
protocol |
string | The protocol of the url that was parsed. |
hostname |
string | The hostname of the url that was parsed. |
port |
string | The port of the url that was parsed. |
pathname |
string | The pathname of the url that was parsed. |
search |
string | The search query of the url that was parsed. |
hash |
string | The hash of the url that was parsed. |
host |
string | The host of the url that was parsed. |