Class HttpWebResponseHelperHttp
- Namespace
- SunamoHttp
- Assembly
- SunamoHttp.dll
Helper class for HttpWebResponse operations Can be only in shared because is not available in standard
public class HttpWebResponseHelperHttp
- Inheritance
-
HttpWebResponseHelperHttp
- 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(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