httk.core.datastream.textstream_request_view

Classes

TextstreamRequestView

A view presenting an underlying data streaming backend via a urllib.request.Request.

Module Contents

class httk.core.datastream.textstream_request_view.TextstreamRequestView(obj, **hints)

Bases: httk.core.datastream.textstream_view.TextstreamView, urllib.request.Request

A view presenting an underlying data streaming backend via a urllib.request.Request. This view is mostly useful for providing a Request to functions that will open it. Note: this view is not lazy (it does not fetch); it only mirrors the underlying request/URL.

Raises TypeError if created with a streaming data source that does not come with a URL.

Parameters:
Raises:

TypeError – If the source has no URL.

unwrap()

Return the raw representation of the wrapped backend.

Returns:

The backend’s most raw available representation.

Return type:

Any