url.js
- Source:
- utils/url.js
Members
-
<static, constant> getAbsoluteURL
-
Get absolute version of relative URL. Used to tell flash correct URL.
- Source:
- utils/url.js
- See:
-
<static, constant> getFileExtension
-
Returns the extension of the passed file name. It will return an empty string if passed an invalid path.
- Source:
- utils/url.js
-
<static, constant> isCrossOrigin
-
Returns whether the url passed is a cross domain request or not.
- Source:
- utils/url.js
-
<static, constant> parseUrl
-
Resolve and parse the elements of a URL.
- Source:
- utils/url.js
Type Definitions
-
url:URLObject
-
Type:
- Object
- Source:
- utils/url.js
Properties:
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.