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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.