<PackageReference Include="System.ClientModel" Version="1.5.1" />

PipelineResponse

public abstract class PipelineResponse : IDisposable
Represents an HTTP response received from a cloud service.
public abstract BinaryData Content { get; }

Gets the contents of the HTTP response.

public abstract Stream ContentStream { get; set; }

Gets or sets the contents of the HTTP response.

Gets the collection of HTTP response headers.

protected abstract PipelineResponseHeaders HeadersCore { get; }

Gets or sets the derived-type's value of the response's Headers collection.

public virtual bool IsError { get; }

Indicates whether the status code of the returned response is considered an error code.

public abstract string ReasonPhrase { get; }

Gets the reason phrase that accompanies the status code on the HTTP response.

public abstract int Status { get; }

Gets the status code of the HTTP response.

protected PipelineResponse()

public abstract BinaryData BufferContent(CancellationToken cancellationToken = default)

Transfer the contents of the response network stream from ContentStream to a buffered cache on this PipelineResponse instance.

public abstract ValueTask<BinaryData> BufferContentAsync(CancellationToken cancellationToken = default)

Transfer the contents of the response network stream from ContentStream to a buffered cache on this PipelineResponse instance.

public abstract void Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.