Class HttpResponseMessageExtensions
Implements HttpResponseMessage extension methods.
Namespace: Neon.Common
Assembly: Neon.Common.dll
Syntax
public static class HttpResponseMessageExtensions
Methods
EnsureSuccessStatusCodeEx(HttpResponseMessage)
Throws a HttpRequestException when the response status code does not indicate success. This improves on EnsureSuccessStatusCode() by including the URI in the exception message.
Declaration
public static void EnsureSuccessStatusCodeEx(this HttpResponseMessage response)
Parameters
Type | Name | Description |
---|---|---|
HttpResponseMessage | response | The HTTP response received |