C# Class LinkCrawler.Utils.Extensions.HttpStatusCodeExtensions

Mostrar archivo Open project: hmol/LinkCrawler

Public Methods

Method Description
IsSuccess ( this @this, string configuredCodes ) : bool

This method will determine if an HttpStatusCode represents a "success" or not based on the configuration string you pass in. You can pass literal codes like 100, 200, 404 Or you can pass in simple patterns using "x"s as wildcards like: 1xx, xx4

Private Methods

Method Description
ToRegex ( string s ) : string

Method Details

IsSuccess() public static method

This method will determine if an HttpStatusCode represents a "success" or not based on the configuration string you pass in. You can pass literal codes like 100, 200, 404 Or you can pass in simple patterns using "x"s as wildcards like: 1xx, xx4
public static IsSuccess ( this @this, string configuredCodes ) : bool
@this this
configuredCodes string CSV of HttpStatus codes
return bool