httk.core.datastream.bytestream_url¶
Classes¶
Backend for streaming byte data fetched from a URL string. |
Module Contents¶
- class httk.core.datastream.bytestream_url.BytestreamURL(url, **hints)¶
Bases:
httk.core.datastream.bytestream_common.BytestreamCommon,httk.core.datastream.bytestream_backend.BytestreamBackendBackend for streaming byte data fetched from a URL string. A bare string is interpreted as a URL when its scheme is one of http, https, ftp, or file, or when an explicit kind=”url” hint is given. Network access from an implicit bare network URL requires explicit consent before opening; URL views and
kind="url"provide that consent. Content is transparently decompressed according to the compression hint.- Parameters:
url (str) – URL to fetch lazily when data is first read.
**hints (Any) – Backend-selection, consent, timeout, and compression hints.
- Raises:
ValueError – If the compression hint is unknown.