C# Class Stumps.HttpHeaders

A custom dictionary that contains the headers in the context of an HTTP request or HTTP response.
Inheritance: IHttpHeaders
Mostra file Open project: Cayan-LLC/stumps Class Usage Examples

Public Methods

Method Description
Clear ( ) : void

Clears all existing headers from the instance.

CopyTo ( IHttpHeaders httpHeaders ) : void

Copies the elements of the T:Stumps.IHttpHeaders collection to another T:Stumps.IHttpHeaders.

HttpHeaders ( ) : System

Initializes a new instance of the T:Stumps.HttpHeaders class.

Remove ( string headerName ) : bool

Removes the header with the specified name.

this ( string headerName ) : string

Gets or sets the System.String value for the specified header name.

Method Details

Clear() public method

Clears all existing headers from the instance.
public Clear ( ) : void
return void

CopyTo() public method

Copies the elements of the T:Stumps.IHttpHeaders collection to another T:Stumps.IHttpHeaders.
is null.
public CopyTo ( IHttpHeaders httpHeaders ) : void
httpHeaders IHttpHeaders The target .
return void

HttpHeaders() public method

Initializes a new instance of the T:Stumps.HttpHeaders class.
public HttpHeaders ( ) : System
return System

Remove() public method

Removes the header with the specified name.
public Remove ( string headerName ) : bool
headerName string The name of the header to remove.
return bool

this() public method

Gets or sets the System.String value for the specified header name.
public this ( string headerName ) : string
headerName string The name of the header.
return string