Class HttpResponseHelper
- Namespace
- SunamoHttp
- Assembly
- SunamoHttp.dll
Helper class for HttpResponse operations Can be only in shared because is not available in standard
public class HttpResponseHelper
- Inheritance
-
HttpResponseHelper
- Inherited Members
- Extension Methods
Methods
IsNotFound(HttpWebResponse?)
Checks if the response indicates a not found status
public static bool IsNotFound(HttpWebResponse? response)
Parameters
responseHttpWebResponseThe HTTP web response to check
Returns
- bool
True if the resource was not found, false otherwise
SomeError(HttpResponseMessage?)
Checks if the response contains any error
public static bool SomeError(HttpResponseMessage? response)
Parameters
responseHttpResponseMessageThe HTTP response message to check
Returns
- bool
True if there is an error (status code is not OK), false otherwise
SomeError(HttpWebResponse?)
Checks if the response contains any error
public static bool SomeError(HttpWebResponse? response)
Parameters
responseHttpWebResponseThe HTTP web response to check
Returns
- bool
True if there is an error (status code is not OK), false otherwise