C# Class Gate.Middleware.Utils.RangeHeader

显示文件 Open project: owin/museum-piece-gate

Public Methods

Method Description
IsValid ( string[]>.IDictionary headers ) : bool
Parse ( string[]>.IDictionary headers, long size ) : long>>.IEnumerable

Private Methods

Method Description
TryParseRange ( string rangeSpec, long size, long>.Tuple &arange ) : bool

Method Details

IsValid() public static method

public static IsValid ( string[]>.IDictionary headers ) : bool
headers string[]>.IDictionary
return bool

Parse() public static method

public static Parse ( string[]>.IDictionary headers, long size ) : long>>.IEnumerable
headers string[]>.IDictionary
size long
return long>>.IEnumerable