Class zebkit.URI | <zebkit> |
URI class. Pass either a full uri (as a string or zebkit.URI) or number of an URI parts (scheme, host, etc) to construct it.
zebkit.URI
([uri], [scheme], [host], [port], [path], [qs]
)
Parameters:
public | void | appendQS (obj) |
public | <zebkit.URI> | getParent ( ) |
public | <Boolean> | isAbsolute ( ) |
public static | <Boolean> | isAbsolute (u) |
public | <Boolean> | isFilePath ( ) |
public static | <Boolean> | isURL (u) |
public static | <String> | join (p) |
public | <String> | join (p) |
public static | <Object> | parseQS (url, [decode]) |
public static | <String> | relative (base, path) |
public | <String> | relative (to) |
public static | <String> | toQS (obj, [encode]) |
public | <String> | toString ( ) |
public
void
appendQS (obj )
Append the given parameters to a query string of the URI. Parameters:
|
public
static
<Boolean>
isAbsolute (u )
Test if the given string is absolute path or URI. Parameters:
Returns:
<Boolean>
true if the string is absolute path or URI. |
public
static
<Boolean>
isURL (u )
Test if the given string is URL. Parameters:
Returns:
<Boolean>
true if the string is URL |
public
static
<String>
join (p )
Join the given paths Parameters:
Returns:
<String>
a joined path as string |
public
static
<Object>
parseQS (url, [decode] )
Parse the specified query string of the given URI. Parameters:
Returns:
<Object>
a parsed query string as a dictionary of parameters |
public
static
<String>
relative (base, path )
Get a relative path. Parameters:
Returns:
<String>
a relative path |
public
<String>
relative (to )
Get an URI relative to the given URI. Parameters:
Returns:
<String>
a relative URI |