Class Index | File Index

Classes


Class URL

Parse URLs and query strings
Defined in: url.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
URL(url)
Field Summary
Field Attributes Field Name and Description
 
Object containing an associative array of the components extracted from the URL (scheme, host, port, user, pass, path, hash, (raw) querystring).
 
Hash anchor tag appended to this URL.
 
Host domain of the URL - "google.com", "jsgamesoup.net" etc.
 
HTTP auth password accessing this URL.
 
Full path to the resource at the server - "/my/document/here.html"
 
Port the URL is accessing - 80, 8080, etc.
 
Key/value store of the parsed query string.
 
Raw query string.
 
URL scheme - "http", "https", "ftp", etc.
 
HTTP auth username accessing this URL.
Method Summary
Method Attributes Method Name and Description
 
get(key)
Class Detail
URL(url)
Parameters:
url
is the URL you would like to extract information from.
Field Detail
components
Object containing an associative array of the components extracted from the URL (scheme, host, port, user, pass, path, hash, (raw) querystring).

hash
Hash anchor tag appended to this URL. - "myanchor"

host
Host domain of the URL - "google.com", "jsgamesoup.net" etc.

pass
HTTP auth password accessing this URL.

path
Full path to the resource at the server - "/my/document/here.html"

port
Port the URL is accessing - 80, 8080, etc.

query
Key/value store of the parsed query string. Multiple keys of the same value will result in an array.

querystring
Raw query string. Use the get() method on the URL object to retrive individual values.

scheme
URL scheme - "http", "https", "ftp", etc.

user
HTTP auth username accessing this URL.
Method Detail
get(key)
Parameters:
key
is the key to search on.
Returns:
the value corresponding to that key. If there are multiple values for any key this will yield and array.

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Nov 09 2012 21:19:32 GMT+0800 (WST)