<PackageReference Include="Azure.Core" Version="1.49.0" />

Response

public abstract class Response : IDisposable
Represents the HTTP response from the service.
public abstract string ClientRequestId { get; set; }

Gets the client request id that was sent to the server as x-ms-client-request-id headers.

public virtual BinaryData Content { get; }

Gets the contents of HTTP response, if it is available.

public abstract Stream ContentStream { get; set; }

Gets the contents of HTTP response. Returns null for responses without content.

public virtual ResponseHeaders Headers { get; }

Get the HTTP response headers.

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 HTTP reason phrase.

public abstract int Status { get; }

Gets the HTTP status code.

protected Response()

public static Response<T> FromValue<T>(T value, Response response)

Creates a new instance of Response<T> with the provided value and HTTP response.

public abstract void Dispose()

Frees resources held by this Response instance.