URI¶
- class esbonio.sphinx_agent.types.Uri(scheme, authority, path, query, fragment)[source]¶
Helper class for working with URIs.
- as_string(encode=True)[source]¶
Return a string representation of this Uri.
- Parameters:
encode – If
True
(the default), encode any special characters.- Returns:
The string representation of the Uri
- Return type:
- classmethod create(*, scheme='', authority='', path='', query='', fragment='')[source]¶
Create a uri with the given attributes.
- join(path)[source]¶
Join this Uri’s path component with the given path and return the resulting uri.