C# Класс Stumps.ReadOnlyHttpHeaders

A read-only implementation of T:Stumps.IHttpHeaders that can be used to protect HTTP requests from being altered.
Наследование: HttpHeaders
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

Clear() публичный Метод

Clears all existing headers from the instance.
Always thrown.
public Clear ( ) : void
Результат void

Remove() публичный Метод

Removes the header with the specified name.
Always thrown.
public Remove ( string name ) : bool
name string The name of the header to remove.
Результат bool

this() публичный Метод

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.
Результат string