<PackageReference Include="Microsoft.Rest.ClientRuntime" Version="2.3.16" />

Microsoft.Rest.HttpMessageWrapper

public abstract class HttpMessageWrapper
Base class used to wrap HTTP requests and responses to preserve data after disposal of HttpClient.
public string Content { get; set; }

Exposes the HTTP message contents.

public IDictionary<string, IEnumerable<string>> Headers { get; }

Gets the collection of HTTP headers.

protected HttpMessageWrapper()

Initializes a new instance of the HttpMessageWrapper class.

protected void CopyHeaders(HttpHeaders headers)

Copies HTTP message headers to the error object.