Exemplo n.º 1
0
        public IHttpRequestInterceptionBuilder OnRequest(HttpMethod method, string url = null)
        {
            var interceptor = new HttpRequestInterception(method, url);

            RegisteredInterceptions.Add(interceptor);

            return(interceptor); // so the caller can customize it
        }
Exemplo n.º 2
0
        public IHttpRequestInterceptionBuilder OnRequest(Func <HttpRequest, bool> requestPredicate = null)
        {
            var interceptor = new HttpRequestInterception(requestPredicate);

            RegisteredInterceptions.Add(interceptor);

            return(interceptor); // so the caller can customize it
        }