C# Class HttpServer.Headers.ContentTypeHeader

Content-type
Inheritance: IHeader
Show file Open project: NyxStudios/HttpServer Class Usage Examples

Public Methods

Method Description
ContentTypeHeader ( string contentType ) : System

Initializes a new instance of the ContentTypeHeader class.

ContentTypeHeader ( string contentType, HttpServer.Headers.HeaderParameterCollection parameterCollection ) : System

Initializes a new instance of the ContentTypeHeader class.

ToString ( ) : string

Returns data formatted as a HTTP header value.

Method Details

ContentTypeHeader() public method

Initializes a new instance of the ContentTypeHeader class.
public ContentTypeHeader ( string contentType ) : System
contentType string Type of the content.
return System

ContentTypeHeader() public method

Initializes a new instance of the ContentTypeHeader class.
public ContentTypeHeader ( string contentType, HttpServer.Headers.HeaderParameterCollection parameterCollection ) : System
contentType string Type of the content.
parameterCollection HttpServer.Headers.HeaderParameterCollection Value parameters.
return System

ToString() public method

Returns data formatted as a HTTP header value.
public ToString ( ) : string
return string