public DecompressionHandler(DecompressionMethods decompressionMethods, HttpMessageHandlerStage innerHandler) { Debug.Assert(decompressionMethods != DecompressionMethods.None); Debug.Assert(innerHandler != null); _decompressionMethods = decompressionMethods; _innerHandler = innerHandler; }
public RedirectHandler(int maxAutomaticRedirections, HttpMessageHandlerStage initialInnerHandler, HttpMessageHandlerStage redirectInnerHandler) { Debug.Assert(initialInnerHandler != null); Debug.Assert(redirectInnerHandler != null); Debug.Assert(maxAutomaticRedirections > 0); _maxAutomaticRedirections = maxAutomaticRedirections; _initialInnerHandler = initialInnerHandler; _redirectInnerHandler = redirectInnerHandler; }