gigl.common.types.uri.HttpUri#
- class gigl.common.types.uri.http_uri.HttpUri(uri: str | Path | HttpUri)#
Bases:
Uri
Represents an HTTP URI.
Methods
The base name is the final component of the path, effectively extracting the file or directory name from a full path string.
Check if the URI is valid.
Join multiple URI tokens into a single URI.
- __eq__(other: Any) bool #
Return self==value.
- __hash__() int #
Return hash(self).
- __repr__() str #
Return repr(self).
- __weakref__#
list of weak references to the object (if defined)
- get_basename() str #
The base name is the final component of the path, effectively extracting the file or directory name from a full path string. i.e. get_basename(“/foo/bar.txt”) -> bar.txt get_basename(“gs://bucket/foo”) -> foo