httk.core.datastream.textstream_request¶
Classes¶
Backend for streaming text fetched via a urllib.request.Request. |
Module Contents¶
- class httk.core.datastream.textstream_request.TextstreamRequest(request, **hints)¶
Bases:
httk.core.datastream.textstream_common.TextstreamCommon,httk.core.datastream.textstream_backend.TextstreamBackendBackend for streaming text fetched via a urllib.request.Request. Response content is transparently decompressed before text decoding.
- Parameters:
request (urllib.request.Request) – Request to execute lazily when text is first read.
**hints (Any) – Backend-selection, encoding, timeout, and compression hints.
- Raises:
ValueError – If the compression hint is unknown.
- property request: urllib.request.Request¶
Return the request used to fetch the stream.