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
Afficher le fichier Open project: Cayan-LLC/stumps Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

Remove() public méthode

Removes the header with the specified name.
Always thrown.
public Remove ( string name ) : bool
name string The name of the header to remove.
Résultat bool

this() public méthode

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.
Résultat string