Re: HttpClient API usage feedback/questions

2018-06-02 Thread Pavel Rappo
> On 2 Jun 2018, at 07:22, Jaikiran Pai wrote: > > Some of the places where we parse the (response) headers, we check for the > presence of some headers and if not present then we default them to certain > values (based on certain application specific context). In its current form > of the H

Re: HttpClient API usage feedback/questions

2018-06-02 Thread Jaikiran Pai
You are right. That didn't occur to me. So yes, clearly, adding those 2 new methods won't add value. -Jaikiran On Sunday, June 3, 2018, Pavel Rappo wrote: > >> On 2 Jun 2018, at 07:22, Jaikiran Pai wrote: >> >> Some of the places where we parse the (response) headers, we check for the presence

HttpClient API expectations for connection failures

2018-06-02 Thread Jaikiran Pai
Consider the following code: public class HttpClientTest {     public static void main(final String[] args) {         final HttpClient httpClient = HttpClient.newBuilder().build();         final String targetURL = "http://unknown.host.foo.bar.com.nowhere";;         final HttpRequest request = Ht