View Javadoc
1   package com.github.davidmoten.aws.lw.client;
2   
3   import java.io.IOException;
4   import java.net.URL;
5   import java.util.Map;
6   
7   import com.github.davidmoten.aws.lw.client.internal.HttpClientDefault;
8   
9   public interface HttpClient {
10  
11      ResponseInputStream request(URL endpointUrl, String httpMethod, Map<String, String> headers,
12              byte[] requestBody, int connectTimeoutMs, int readTimeoutMs) throws IOException;
13  
14      static HttpClient defaultClient() {
15          return HttpClientDefault.INSTANCE;
16      }
17  }