labapi.client.StreamingResponse#

class labapi.client.StreamingResponse(response: Response)[source]#

Bases: object

Wrapper for streamed API responses.

Exposes both the chunk iterator and the underlying HTTP response object so callers can read headers/status without relying on StopIteration.value.

__init__(
response: Response,
)[source]#

Initialize a streamed response wrapper.

Methods

__init__(response)

Initialize a streamed response wrapper.

close()

Close the underlying response and release its connection.

Attributes

response

The raw response object backing the stream.

property response: Response#

The raw response object backing the stream.

close() None[source]#

Close the underlying response and release its connection.