Module lousy.uri
lousy.uri library
URI parsing functions
Functions
lousy.uri.is_uri (s)
Guess if a string is an URI.
Parameters
-
sType: stringThe input string.
Return Values
-
booleantrue if the string could be a URI, false otherwise.
lousy.uri.split (s)
Split a string into URIs or group of words.
Parameters
-
sType: stringThe string to split.
Return Values
-
tableA table of strings whose member is either a group of words to be searched or a URI
lousy.uri.parse_query (query)
Parse the query component of a URI and return it as a table.
Parameters
-
queryType: stringThe query component of a URI.
Return Values
-
tableThe parsed table of query options.
lousy.uri.parse (uri)
Parse a URI string and return a URI table.
Parameters
-
uriType: stringThe URI as a string.
Return Values
-
tableThe URI as a table.
lousy.uri.copy (uri)
Duplicate a URI table.
Parameters
-
uriType: tableThe URI as a table.
Return Values
-
tableA new copy of the URI table.
lousy.uri.domains_from_uri (uri)
Find the domains that a given URI belongs to.
Parameters
-
uriType: stringThe URI.
Return Values
-
{string}An array of domains.
Attribution
Copyright
- 2011 Mason Larobina