C# Class GitHubFeeds.Helpers.HeaderValueParser

Parses HTTP header values that are in the form name *( ";" key [ "=" [ value ] ] ).
This class is loosely based on the HttpCode HeaderValueParser API.
Show file Open project: bgrainger/GitHubFeeds

Public Methods

Method Description
ParseHeaderElements ( string header ) : ReadOnlyCollection

Parses an HTTP header into a collection of HeaderElement objects.

Private Methods

Method Description
ParseHeaderElement ( string headerPart ) : HeaderElement
SplitAndTrim ( string value, char separator ) : IEnumerable

Method Details

ParseHeaderElements() public static method

Parses an HTTP header into a collection of HeaderElement objects.
public static ParseHeaderElements ( string header ) : ReadOnlyCollection
header string The HTTP header.
return ReadOnlyCollection