public RedirectHandler WithRedirectStatusCode(HttpStatusCode statusCode) { if (!RedirectStatusCodes.Contains(statusCode)) { RedirectStatusCodes.Add(statusCode); } return(this); }
private bool ShouldRedirect(HttpSentContext context) { return(RedirectStatusCodes.Contains(context.Result.StatusCode)); }