Sisk

Constructor

HttpStatusInformation constructor

Namespace
Sisk.Core.Http
Assembly
Sisk.Core.dll

HttpStatusInformation() #

Creates an new HttpStatusInformation with default parameters (200 OK) status.

C#
public HttpStatusInformation()

HttpStatusInformation(int) #

Creates an new HttpStatusInformation instance with given parameters.

C#
public HttpStatusInformation(int statusCode)

Parameters #

statusCode int

Sets the numeric HTTP status code of the HTTP message.

HttpStatusInformation(HttpStatusCode) #

Creates an new HttpStatusInformation instance with given parameters.

C#
public HttpStatusInformation(HttpStatusCode statusCode)

Parameters #

statusCode HttpStatusCode

Sets the numeric HTTP status code of the HTTP message.

HttpStatusInformation(int, string) #

Creates an new HttpStatusInformation instance with given parameters.

C#
public HttpStatusInformation(int statusCode, string description)

Parameters #

statusCode int

Sets the numeric HTTP status code of the HTTP message.

description string

Sets the short description of the HTTP message.

Remarks #

Custom status descriptions is only supported for plain HTTP/1.1 and 1.0 transfers.

Exceptions #

ArgumentNullException

Type to search the documentation and the API reference.