Response Class

Definition

Represents the HTTP response from the service.

public abstract class Response : IDisposable
type Response = class
    interface IDisposable
Public MustInherit Class Response
Implements IDisposable
Inheritance
Response
Implements

Constructors

Response()

Properties

ClientRequestId

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

Content

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

ContentStream

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

Headers

Get the HTTP response headers.

IsError

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

ReasonPhrase

Gets the HTTP reason phrase.

Status

Gets the HTTP status code.

Methods

ContainsHeader(String)

Returns true if the header is stored in the collection.

Dispose()

Frees resources held by this Response instance.

EnumerateHeaders()

Returns an iterator for enumerating HttpHeader in the response.

FromValue<T>(T, Response)

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

ToString()

Returns the string representation of this Response.

TryGetHeader(String, String)

Returns header value if the header is stored in the collection. If header has multiple values they are going to be joined with a comma.

TryGetHeaderValues(String, IEnumerable<String>)

Returns header values if the header is stored in the collection.

Applies to