protected override HTTPResponse PostRequest(string url, string clientIPAddress, byte[] gzippedPayload) { using (WrappedWebClient webClient = new WrappedWebClient(clientIPAddress)) { using (System.Net.HttpWebResponse response = webClient.Post(url, gzippedPayload)) { return(ReadResponse(response)); } } }
protected override HTTPResponse GetRequest(string url, string clientIPAddress) { using (WrappedWebClient webClient = new WrappedWebClient(clientIPAddress)) { using (System.Net.HttpWebResponse response = webClient.Get(url)) { return(ReadResponse(response)); } } }
protected override HttpResponse GetRequest(string url, string clientIpAddress) { using (var webClient = new WrappedWebClient(HttpClientConfiguration, clientIpAddress)) { using (var response = webClient.Get(url)) { return(ReadResponse(response)); } } }
protected override HttpResponse PostRequest(string url, string clientIpAddress, byte[] gzippedPayload) { using (var webClient = new WrappedWebClient(HttpClientConfiguration, clientIpAddress)) { using (var response = webClient.Post(url, gzippedPayload)) { return(ReadResponse(response)); } } }
public IWebClient Create() { client = new WrappedWebClient(); return(client); }