AutoClientHttpError Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Colaborar con nosotros en GitHub
El origen de este contenido se puede encontrar en GitHub, donde también puede crear y revisar problemas y solicitudes de incorporación de cambios. Para más información, consulte nuestra guía para colaboradores.