HttpResponse Class

Inheritance
azure.core.pipeline.transport._base._HttpResponseBase
HttpResponse

Constructor

HttpResponse(request: HttpRequest, internal_response: Any, block_size: int | None = None)

Parameters

request
internal_response
block_size
default value: None

Methods

parts

Assuming the content-type is multipart/mixed, will return the parts as an iterator.

stream_download

Generator for streaming request body data.

Should be implemented by sub-classes if streaming download is supported.

parts

Assuming the content-type is multipart/mixed, will return the parts as an iterator.

parts() -> Iterator[HttpResponse]

Return type

<xref:iterator>[HttpResponse]

Exceptions

If the content is not multipart/mixed

stream_download

Generator for streaming request body data.

Should be implemented by sub-classes if streaming download is supported.

stream_download(pipeline: PipelineType, **kwargs) -> Iterator[bytes]

Parameters

pipeline
Required

Return type

<xref:iterator>[bytes]

Exceptions

If the content is not multipart/mixed