The oauth-consumer URLConnectionClient class has comments which are not 
accurate. 

It states that the URLConnection does not do connection pooling. The 
java.net http client has does connection pooling automatically[1].

It states that the URLConnection does not allow reading the body in failure 
cases. This is also not accurate. The body is available through the 
getErrorStream method[2]. The URLConnectionResponse openBody method needs 
to be changed to call getErrorStream before just returning null in the case 
of an IOException.

[1] 
- https://docs.oracle.com/javase/8/docs/technotes/guides/net/http-keepalive.html
[2] 
- 
https://docs.oracle.com/javase/8/docs/api/java/net/HttpURLConnection.html#getErrorStream--

-- 
You received this message because you are subscribed to the Google Groups 
"OAuth" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to