slycat.uri

Provides server-side functionality for creating, parsing, and editing Uniform Resource Identifiers (URIs) using an API that is based on the excellent URI.js library (which is available for Slycat clients).

class slycat.uri.URI(value='')[source]

Bases: object

Encapsulates URI creation and editing with a URI.js compatible interface.

hostname(value=None)[source]

Return / assign the URI hostname.

href(value=None)[source]

Return / assign the string representation of a URI.

password(value=None)[source]

Return / assign the URI password.

port(value=None)[source]

Return / assign the URI port.

protocol(value=None)[source]

Return / assign the URI protocol.

removeQuery(keys, value=None)[source]

Alias for URI.removeSearch().

removeSearch(keys, value=None)[source]

Remove values from the URI search section.

scheme()[source]

Alias for URI.protocol()

toString()[source]

Return the string representation of the URI.

username(value=None)[source]

Return / assign the URI username.

valueOf()[source]

Return the string representation of the URI.