다음을 통해 공유


AutoClientHttpError Constructor

Definition

Initializes a new instance of the AutoClientHttpError class.

public:
 AutoClientHttpError(int statusCode, System::Collections::Generic::IReadOnlyDictionary<System::String ^, Microsoft::Extensions::Primitives::StringValues> ^ responseHeaders, System::String ^ rawContent, System::String ^ reasonPhrase);
public AutoClientHttpError(int statusCode, System.Collections.Generic.IReadOnlyDictionary<string,Microsoft.Extensions.Primitives.StringValues> responseHeaders, string rawContent, string? reasonPhrase);
new Microsoft.Extensions.Http.AutoClient.AutoClientHttpError : int * System.Collections.Generic.IReadOnlyDictionary<string, Microsoft.Extensions.Primitives.StringValues> * string * string -> Microsoft.Extensions.Http.AutoClient.AutoClientHttpError
Public Sub New (statusCode As Integer, responseHeaders As IReadOnlyDictionary(Of String, StringValues), rawContent As String, reasonPhrase As String)

Parameters

statusCode
Int32

The HTTP status code of the response.

responseHeaders
IReadOnlyDictionary<String,StringValues>

The response headers.

rawContent
String

The raw string content of the response.

reasonPhrase
String

The HTTP error reason.

Applies to