tlcurl.url_adapters.http_url_adapter¶

An adapter for resolving reads/writes to URLs starting with http:// or https://

Module Contents¶

Classes¶

Class

Description

HttpUrlAdapter

An adapter for resolving reads/writes to URLs starting with http:// or https://

API¶

class HttpUrlAdapter¶

Bases: tlcurl.url_adapter.UrlAdapterAsyncFromSync

An adapter for resolving reads/writes to URLs starting with http:// or https://

delete_url(
url: Url,
) None¶
abstract exists(
url: Url,
) bool¶
abstract get_file_size(
url: Url,
) int¶
abstract is_dir(
url: Url,
) bool¶
abstract is_writable(
url: Url,
) bool¶
abstract list_dir(
url: Url,
) Iterator[UrlAdapterDirEntry]¶
abstract make_dirs(
url: Url,
exist_ok: bool = False,
) None¶
read_binary_content_from_url(
url: Url,
) bytes¶
read_string_content_from_url(
url: Url,
encoding: str = 'utf-8',
) str¶
schemes() list[Scheme]¶
abstract stat(
url: Url,
) UrlAdapterDirEntry¶

Http URLs don’t support file status operations.

Parameters:

url – The URL to get status for

Raises:

NotImplementedError – Always, as Http URLs don’t support stat

abstract stat_async(
url: Url,
) Future¶
touch(
url: Url,
) None¶

Http URLs don’t support file modification operations.

Parameters:

url – The URL to touch

Raises:

NotImplementedError – Always, as API URLs don’t support touch