Table of Contents

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

response HttpWebResponse

The 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

response HttpResponseMessage

The 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

response HttpWebResponse

The HTTP web response to check

Returns

bool

True if there is an error (status code is not OK), false otherwise