C# Class GitHubFeeds.Helpers.HeaderElement

HeaderElement represents one element in an HTTP header.
This class is loosely based on the HttpCode HeaderElement API.
Show file Open project: bgrainger/GitHubFeeds

Public Methods

Method Description
GetParameterByName ( string key ) : string

Gets the value of a parameter for the specified key.

TryGetParameterByName ( string name, string &value ) : bool

Gets the value of a parameter for the specified key.

Private Methods

Method Description
HeaderElement ( string name, string>.IEnumerable parameters ) : System.Collections.Generic

Method Details

GetParameterByName() public method

Gets the value of a parameter for the specified key.
public GetParameterByName ( string key ) : string
key string The key.
return string

TryGetParameterByName() public method

Gets the value of a parameter for the specified key.
public TryGetParameterByName ( string name, string &value ) : bool
name string The key.
value string On return, contains the parameter value associated with that key if the key is found; otherwise, null.
return bool