C# Class Stumps.ReadOnlyHttpHeaders

A read-only implementation of T:Stumps.IHttpHeaders that can be used to protect HTTP requests from being altered.
Inheritance: HttpHeaders
Exibir arquivo Open project: Cayan-LLC/stumps Class Usage Examples

Public Methods

Method Description
Clear ( ) : void

Clears all existing headers from the instance.

Remove ( string name ) : bool

Removes the header with the specified name.

this ( string headerName ) : string

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

Private Methods

Method Description
AddOrUpdateInternal ( string name, string value ) : void

Adds or updates an existing header.

ClearInternal ( ) : void

Clears all existing headers from the instance.

RemoveInternal ( string name ) : bool

Removes the header with the specified name.

Method Details

Clear() public method

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

Remove() public method

Removes the header with the specified name.
Always thrown.
public Remove ( string name ) : bool
name 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.
Thrown when altering the value of a header.
public this ( string headerName ) : string
headerName string The name of the header.
return string