Module lousy.uri

lousy.uri library

URI parsing functions

Functions

lousy.uri.parse_query (query)

Parse the query component of a URI and return it as a table.

Parameters

  • query
    Type: string
    The query component of a URI.

Return Values

  • table
    The parsed table of query options.

lousy.uri.parse (uri)

Parse a URI string and return a URI table.

Parameters

  • uri
    Type: string
    The URI as a string.

Return Values

  • table
    The URI as a table.

lousy.uri.copy (uri)

Duplicate a URI table.

Parameters

  • uri
    Type: table
    The URI as a table.

Return Values

  • table
    A new copy of the URI table.

Attribution

Authors

Copyright