betty.fetch.http module¶
Fetch content from the internet.
- class betty.fetch.http.HttpFetcher[source]¶
Bases:
Fetcher
Fetch content from the internet using an HTTP client.
- __init__(http_client: ClientSession, response_cache: Cache[FetchResponse], binary_file_cache: BinaryFileCache, ttl: int = 604800)[source]¶
- async fetch(url: str) FetchResponse [source]¶
Fetch an HTTP resource.