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

ResponseHeaders

Headers received as part of the Response.
public int? ContentLength { get; }

Gets the parsed value of "Content-Length" header.

public long? ContentLengthLong { get; }

Gets the parsed value of "Content-Length" header as a long.

public string ContentType { get; }

Gets the value of "Content-Type" header.

public DateTimeOffset? Date { get; }

Gets the parsed value of "Date" or "x-ms-date" header.

public ETag? ETag { get; }

Gets the parsed value of "ETag" header.

public string RequestId { get; }

Gets the value of "x-ms-request-id" header.

public bool Contains(string name)

Returns true if the header is stored in the collection.

Returns an enumerator that iterates through the ResponseHeaders.

public bool TryGetValue(string name, out string value)

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.

public bool TryGetValues(string name, out IEnumerable values)

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