C# 클래스 URSA.Web.Http.HeaderCollection

파일 보기 프로젝트 열기: alien-mcl/URSA 1 사용 예제들

공개 메소드들

메소드 설명
Add ( Header header ) : Header

Adds a new header.

If the header already exists, method will merge new value and parameters with the existing ones.

Add ( string name, string value ) : Header

Adds a new header.

If the header already exists, method will merge new value and parameters with the existing ones.

HeaderCollection ( ) : System

Initializes a new instance of the HeaderCollection class.

Merge ( HeaderCollection headers ) : void

Merges headers.

Parse ( string headers ) : HeaderCollection

Parses a given string as a HeaderCollection.

Remove ( string name ) : bool

Removes the header with given name.

Set ( Header header ) : Header

Sets a new header.

If the header already exists, it is replaced with the new one.

Set ( string name, string value ) : Header

Sets a new header.

If the header already exists, it is replaced with the new one.

TryParse ( string headers, HeaderCollection &headersCollection ) : bool

Tries to parse a given string as a HeaderCollection.

this ( string name ) : Header

Gets or sets the header by it's name.

비공개 메소드들

메소드 설명
ToString ( ) : string

메소드 상세

Add() 공개 메소드

Adds a new header.
If the header already exists, method will merge new value and parameters with the existing ones.
public Add ( Header header ) : Header
header Header Header to be added.
리턴 Header

Add() 공개 메소드

Adds a new header.
If the header already exists, method will merge new value and parameters with the existing ones.
public Add ( string name, string value ) : Header
name string Name of the header to be added.
value string Value of the header to be added.
리턴 Header

HeaderCollection() 공개 메소드

Initializes a new instance of the HeaderCollection class.
public HeaderCollection ( ) : System
리턴 System

Merge() 공개 메소드

Merges headers.
public Merge ( HeaderCollection headers ) : void
headers HeaderCollection Headers to be merged.
리턴 void

Parse() 공개 정적인 메소드

Parses a given string as a HeaderCollection.
public static Parse ( string headers ) : HeaderCollection
headers string String to be parsed.
리턴 HeaderCollection

Remove() 공개 메소드

Removes the header with given name.
public Remove ( string name ) : bool
name string Name of the header to be removed.
리턴 bool

Set() 공개 메소드

Sets a new header.
If the header already exists, it is replaced with the new one.
public Set ( Header header ) : Header
header Header Header to be set.
리턴 Header

Set() 공개 메소드

Sets a new header.
If the header already exists, it is replaced with the new one.
public Set ( string name, string value ) : Header
name string Name of the header to be added.
value string Value of the header to be added.
리턴 Header

TryParse() 공개 정적인 메소드

Tries to parse a given string as a HeaderCollection.
public static TryParse ( string headers, HeaderCollection &headersCollection ) : bool
headers string String to be parsed.
headersCollection HeaderCollection Resulting collection of headers if parsing was successful; otherwise null.
리턴 bool

this() 공개 메소드

Gets or sets the header by it's name.
public this ( string name ) : Header
name string Name of the header.
리턴 Header