Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: bool MayHaveBody(this HttpStatusCode)

Declaration

public static bool MayHaveBody(
    this HttpStatusCode statusCode
)

Summary

Determines whether an HTTP response with the specified statusCode is allowed to have a body (i.e. a non-null content stream).

Parameters

this HttpStatusCodestatusCode The HTTP status code to examine.

Returns

A boolean value that indicates whether an HTTP response with the specified statusCode is allowed to have a body.