Re: RFR [11] 8208391: Need to differentiate response and connect timeouts in HTTP Client API

2018-08-09 Thread Jaikiran Pai
Thanks for the updates, Chris. This looks fine to me (I'm not a reviewer). -Jaikiran On 07/08/18 3:22 PM, Chris Hegarty wrote: >> On 4 Aug 2018, at 14:08, Jaikiran Pai wrote: >> >> ... >> >> Do you think this can be reworded a bit? Although I understand what's >> being said here, the wording do

Re: RFR [11] 8208391: Need to differentiate response and connect timeouts in HTTP Client API

2018-08-08 Thread Michael McMahon
The updated webrev looks fine to me, Chris. Thanks, Michael On 07/08/2018, 10:52, Chris Hegarty wrote: On 4 Aug 2018, at 14:08, Jaikiran Pai wrote: ... Do you think this can be reworded a bit? Although I understand what's being said here, the wording doesn't seem right. Maybe something like:

Re: RFR [11] 8208391: Need to differentiate response and connect timeouts in HTTP Client API

2018-08-07 Thread Chris Hegarty
> On 4 Aug 2018, at 14:08, Jaikiran Pai wrote: > > ... > > Do you think this can be reworded a bit? Although I understand what's > being said here, the wording doesn't seem right. Maybe something like: > > * In the case where a new connection needs to be > established, if >

Re: RFR [11] 8208391: Need to differentiate response and connect timeouts in HTTP Client API

2018-08-04 Thread Jaikiran Pai
Hi Chris, src/java.net.http/share/classes/java/net/http/HttpClient.java + * In the case where a new connection needs to be established, if + * the connection cannot be established within the given {@code + * duration}, then an {@link HttpConnectTimeoutException} is thrown

RFR [11] 8208391: Need to differentiate response and connect timeouts in HTTP Client API

2018-08-04 Thread Chris Hegarty
Hi, This is a code review to add connection specific timeout support to the new HTTP Client, as discussed recently over on another thread [1]. The connection timeout duration is proposed to be added at the level of the client, and if specified applies to all requests sent by that client. The conn

JEP 110 HTTP client API

2016-12-05 Thread Michael McMahon
Hi, I just want to confirm the plans for the HTTP client API in JDK 9 that were hinted at previously. There is a new feature called "incubator modules" which has just been proposed for JDK 9. The idea is to accommodate new APIs in JDK which are not quite ready to be standardized

RE: HTTP client API

2016-11-29 Thread Mark A. Claassen
es". These are modules that can be delivered with the JDK, but are not standard parts of the platform (Java SE). So, they do not resolve by default and will have runtime/compile time warnings to indicate that the contained APIs are potentially subject to change. The plan is to make this new

Re: HTTP client API

2016-11-29 Thread Michael McMahon
s". These are modules that can be delivered with the JDK, but are not standard parts of the platform (Java SE). So, they do not resolve by default and will have runtime/compile time warnings to indicate that the contained APIs are potentially subject to change. The plan is to make this new h

Re: HTTP client API

2016-11-21 Thread Chris Hegarty
/jdk9/sandbox; cd sandbox bash common/bin/hgforest.sh update http-client-branch On 21/11/16 11:28, Tobias Thierer wrote: Replying to my own first email in this thread to add another question / concern about flexibility of the HTTP Client API: Have you considered offering applications a way

Re: HTTP client API

2016-11-21 Thread Tobias Thierer
Hi Michael - Some follow-up/updates on items from my previous email inline below: On Mon, Oct 31, 2016 at 6:13 PM, Tobias Thierer wrote: > > On Fri, Oct 28, 2016 at 12:28 PM, Michael McMahon < > michael.x.mcma...@oracle.com> wrote: > >> >> The intention behind those interfaces is primarily to p

Re: HTTP client API

2016-11-01 Thread Tobias Thierer
On Mon, Oct 31, 2016 at 6:13 PM, Tobias Thierer wrote: > On Fri, Oct 28, 2016 at 12:28 PM, Michael McMahon < > michael.x.mcma...@oracle.com> wrote: >> >> 2.) HttpHeaders: I love that there is a type for this abstraction! But: >> >>- >> >>Why is the type an interface rather than a concrete

Re: HTTP client API

2016-10-31 Thread Tobias Thierer
Hi Michael - thanks a lot for your response! Further comments below. How would you rank simplicity, versatility and performance as goals for the HTTP Client API? For example the blocking vs. non-blocking API choices will largely depend on trade-offs, so I'd like to understand the t

Re: HTTP client API

2016-10-28 Thread Michael McMahon
Hi Tobias Thanks for the feedback (and thanks to Anthony for answering some of the questions) My thoughts are below. On 24/10/2016, 20:33, Tobias Thierer wrote: Hi Michael and others - Thanks for publishing the latest HTTP client API docs <http://cr.openjdk.java.net/%7Emicha

Re: HTTP client API

2016-10-27 Thread Anthony Vanelverdinghe
r wrote: Hi Michael and others - Thanks for publishing the latest HTTP client API docs <http://cr.openjdk.java.net/%7Emichaelm/httpclient/api/>(already slightly outdated again), as well as for publishing the current draft code in the sandbox repository! Below is some concrete f

Re: HTTP client API

2016-09-23 Thread Chris Hegarty
On 22/09/16 08:54, Chris Hegarty wrote: On 22 Sep 2016, at 00:14, Michael McMahon wrote: Martin The source is available in the JDK 9 sandbox (http-client-branch) at http://hg.openjdk.java.net/jdk9/sandbox/ I think it has been updated to reflect the API as described below. Apologies, it has

Re: HTTP client API

2016-09-22 Thread Chris Hegarty
On 22 Sep 2016, at 00:14, Michael McMahon wrote: > > Martin > > The source is available in the JDK 9 sandbox (http-client-branch) at > http://hg.openjdk.java.net/jdk9/sandbox/ > > I think it has been updated to reflect the API as described below. Apologies, it has not been update yet. I will d

Re: HTTP client API

2016-09-21 Thread Michael McMahon
Martin The source is available in the JDK 9 sandbox (http-client-branch) at http://hg.openjdk.java.net/jdk9/sandbox/ I think it has been updated to reflect the API as described below. Michael. On 21/09/2016, 14:14, Martin Buchholz wrote: On Wed, Sep 7, 2016 at 10:15 AM, Michael McMahon mai

Re: HTTP client API

2016-09-21 Thread Martin Buchholz
On Wed, Sep 7, 2016 at 10:15 AM, Michael McMahon < michael.x.mcma...@oracle.com> wrote: > > [1] http://cr.openjdk.java.net/~michaelm/httpclient/api.1/ > > [2] http://cr.openjdk.java.net/~michaelm/httpclient/ > specdiffout.1/package-summary.html > Could we have actual source code for experimentati

Re: HTTP client API

2016-09-12 Thread Michael McMahon
flow-control is very hard to get right). Attached is a feedback doc on this new version. One specific idea to discuss is whether it's possible to release the new HTTP client API as a standalone library (that works on JDK 9). Thanks, Wenbo On Mon, Aug 22, 2016 at 12:56 AM, Michae

Re: HTTP client API

2016-09-08 Thread Anthony Vanelverdinghe
6, 07:59, Wenbo Zhu wrote: Hi Michael, Thanks for the update! The adoption of the Flow API is indeed a big improvement (async flow-control is very hard to get right). Attached is a feedback doc on this new version. One specific idea to discuss is whether it's possible to release the new

Re: HTTP client API

2016-09-07 Thread Michael McMahon
t right). Attached is a feedback doc on this new version. One specific idea to discuss is whether it's possible to release the new HTTP client API as a standalone library (that works on JDK 9). Thanks, Wenbo On Mon, Aug 22, 2016 at 12:56 AM, Michael McMahon mailto:michael.x.mcma...@or

Re: HTTP client API

2016-09-03 Thread Chris Hegarty
Martin, Wenbo, We are considering the feedback, will take it under advisement, and reply in due course. -Chris. > On 26 Aug 2016, at 22:14, Martin Buchholz wrote: > > I don't know much about http, but I believe those who say that it's very hard > to get the API right. Perhaps it would be bes

Re: HTTP client API

2016-08-26 Thread Martin Buchholz
I don't know much about http, but I believe those who say that it's very hard to get the API right. Perhaps it would be best to deliver a http client library as an independent beta package for use with jdk 8+ with a final version becoming part of jdk 10? Perhaps there can be a productive collabor

Re: HTTP client API

2016-08-24 Thread Chris Hegarty
On 23/08/16 22:19, Pavel Rappo wrote: http://cr.openjdk.java.net/~chegar/docs/sandbox.html And yes, 'http-client-branch' is the correct branch. -Chris. On 23 Aug 2016, at 21:20, Martin Buchholz wrote: I tried this: (Install mercurial trees extension.) hg tclone http://hg.openjdk.java.n

Re: HTTP client API

2016-08-23 Thread Pavel Rappo
http://cr.openjdk.java.net/~chegar/docs/sandbox.html > On 23 Aug 2016, at 21:20, Martin Buchholz wrote: > > I tried this: > > (Install mercurial trees extension.) > hg tclone http://hg.openjdk.java.net/jdk9/sandbox jdk9-sandbox > hg tupdate -r http-client-branch > > Is that right? > I'm not

Re: HTTP client API

2016-08-23 Thread Martin Buchholz
On Tue, Aug 23, 2016 at 12:57 PM, Wenbo Zhu wrote: > >> We are currently working in the sandbox repository again and will have >> these changes >> in the main JDK9 dev forest soon. >> > Is it possible to access the API code somewhere before then, mainly as a > convenience for reviewing the APIs?

Re: HTTP client API

2016-08-23 Thread Wenbo Zhu
On Mon, Aug 22, 2016 at 12:56 AM, Michael McMahon < michael.x.mcma...@oracle.com> wrote: > There is an updated version of the HTTP client API doc [1] and a specdiff > [2] showing the changes > proposed from the current version in JDK9 dev. > > The main changes are: > >

HTTP client API

2016-08-22 Thread Michael McMahon
There is an updated version of the HTTP client API doc [1] and a specdiff [2] showing the changes proposed from the current version in JDK9 dev. The main changes are: 1) The request and response processors are now based on Flow.Publisher and Flow.Subscriber 2) Response bodies are retrieved

Http client API review (final)

2012-11-30 Thread Michael McMahon
Hi, I have just posted another draft of the http client API for review. This will be the final round of review before we submit it to the CCC. It can be seen at: http://cr.openjdk.java.net/~michaelm/httpclient/CCCv1.1/javadoc/ Probably the biggest change is that we removed the multiple

Re: Review of new Http client API

2012-11-02 Thread Michael McMahon
build something with it, which I'd be happy to give a try at. Thanks Richard On Aug 14, 2012, at 5:01 AM, Michael McMahon wrote: Hi, (apologies for sending this again) We have just published a draft of a proposed new Http client API [1] for JDK 8. This message has been cc'd to jdk8-dev

revision 0.4 Http client API

2012-09-02 Thread Michael McMahon
Hello, I have just posted the javadoc for v 0.4 of the Http client API [1] This draft takes into account almost all of the feedback from the last round of reviews. There are a small number of issues still outstanding however. For those who are not aware, the development work done so far has

Re: Review of new Http client API

2012-08-23 Thread Chris Hegarty
On 23/08/2012 16:34, Paul Sandoz wrote: ... OK, i would be inclined to separate out the instance used for building from the instance passed around, so one cannot muck around with the state of the latter. Agreed, HttpResponse could use a builder pattern. Then user code may do: AsyncHttp

Re: Review of new Http client API

2012-08-23 Thread Paul Sandoz
Reader { >> U read(T t) throws IOException; >> } >> >> Of course i might be missing something obvious here in terms of optimisation >> currently performed by the implementation! >> >> -- >> >> It somewhat bugs me that blocking and asynchrono

Re: Review of new Http client API

2012-08-23 Thread Paul Sandoz
On Aug 23, 2012, at 5:05 PM, Chris Hegarty wrote: > Paul, > > All good feedback, and I will leave it to Michael to reply to the specifics. > On thought I had on separation of modes is something list this: > > interface HeaderHandler { > onHeaders(HttpResponse); > } > interface ErrorHa

Re: Review of new Http client API

2012-08-23 Thread Michael McMahon
We have just published a draft of a proposed new Http client API [1] for JDK 8. This message has been cc'd to jdk8-dev so that as many people as possible know about it, but the discussion will be on the net-dev list (net-dev@openjdk.java.net). So, folks will have to join that list [2], in

Re: Review of new Http client API

2012-08-23 Thread Chris Hegarty
ts. But, my imagination is currently is failing me on how to improve on such matters. Perhaps something better may come out of fluent-based API? Paul. On Aug 14, 2012, at 2:01 PM, Michael McMahon wrote: Hi, (apologies for sending this again) We have just published a draft of a proposed new Http

Re: Review of new Http client API

2012-08-23 Thread Paul Sandoz
me on how to improve on such matters. Perhaps something better may come out of fluent-based API? Paul. On Aug 14, 2012, at 2:01 PM, Michael McMahon wrote: > Hi, > > (apologies for sending this again) > We have just published a draft of a proposed new Http client API [1] for JDK

Re: Review of new Http client API

2012-08-23 Thread Michael McMahon
ning. We need to ensure that our pipe-lining API is not restricted to only Http 1.1 pipe-lining Are you aware of other areas that could have an impact on the API? Thanks Michael. Sam On Tue, Aug 14, 2012 at 5:01 AM, Michael McMahon wrote: Hi, (apologies for sending this again) We have just publ

Re: Review of new Http client API

2012-08-22 Thread Chris Hegarty
ot restricted to only Http 1.1 pipe-lining Are you aware of other areas that could have an impact on the API? Thanks Michael. Sam On Tue, Aug 14, 2012 at 5:01 AM, Michael McMahon wrote: Hi, (apologies for sending this again) We have just published a draft of a proposed new Http client API [1] for

Re: Review of new Http client API

2012-08-22 Thread Michael McMahon
hanks Michael. Sam On Tue, Aug 14, 2012 at 5:01 AM, Michael McMahon wrote: Hi, (apologies for sending this again) We have just published a draft of a proposed new Http client API [1] for JDK 8. This message has been cc'd to jdk8-dev so that as many people as possible know about it,

Re: Review of new Http client API

2012-08-22 Thread Chris Hegarty
McMahon wrote: Hi, (apologies for sending this again) We have just published a draft of a proposed new Http client API [1] for JDK 8. This message has been cc'd to jdk8-dev so that as many people as possible know about it, but the discussion will be on the net-dev list (net-dev@openjdk.j

Re: Review of new Http client API

2012-08-21 Thread Michael McMahon
14, 2012 at 5:01 AM, Michael McMahon wrote: Hi, (apologies for sending this again) We have just published a draft of a proposed new Http client API [1] for JDK 8. This message has been cc'd to jdk8-dev so that as many people as possible know about it, but the discussion will be on the net-dev l

Re: Http client API

2012-08-20 Thread Vasiliy Baranov
On 17.08.2012 14:30, Michael McMahon wrote: On 09/08/12 19:15, Chris Hegarty wrote: Michael, Looking good, some comments. 1) Why the use of CookieManager, rather than CookieHandler? I would expect that CookieHandler would be a cleaner API CookieHandler is a very low level API, which doesn't

Re: Http client API

2012-08-17 Thread Michael McMahon
On 17/08/12 11:59, Frank Carver wrote: On 17 August 2012 11:30, Michael McMahon wrote: 2) What is the impact on the sendHeader, setBody for HEAD requests? Ah yes, HEAD needs special treatment - though not with respect to the methods above as HEAD is identical to GET except with respect to any

Re: Http client API

2012-08-17 Thread Frank Carver
On 17 August 2012 11:30, Michael McMahon wrote: >> 2) What is the impact on the sendHeader, setBody for HEAD requests? > Ah yes, HEAD needs special treatment - though not with respect to the methods > above as HEAD is identical to GET except with respect to any returned > response body. > > So,

Re: Http client API

2012-08-17 Thread Michael McMahon
t a blocking application will just block until the 100 continue is received, before being allowed to send the body. An asynchronous application will just not be "called back" to get the body until the 100 is received. Thanks Michael -Chris. On 08/08/12 00:09, Michael McMahon wrote: Hi,

Re: Http client API

2012-08-16 Thread Michael McMahon
On 08/08/12 20:09, Ian Robertston wrote: Instead of HttpRequest having void setBody(Iterable buffers, boolean isRestartable) what about having two methods: void setBody(Iterable buffers) // presumed restartable void setBody(Iterator buffers) // clearly not restartable Not only doe

Re: Http client API

2012-08-15 Thread Michael McMahon
On 15/08/12 16:59, Mike Duigou wrote: On Aug 15 2012, at 09:06 , Michael McMahon wrote: HttpClientProvider:: - HttpClientProvider JavaDoc uses inconsistent capitalization of HTTP. - createAsynchronousHttpClient() Since there's only one create method why bother to mention that it's "Asynchron

Re: Http client API

2012-08-15 Thread Alan Bateman
On 15/08/2012 16:59, Mike Duigou wrote: On Aug 15 2012, at 09:06 , Michael McMahon wrote: : Yes, the provider needs work. I agree with the above. Though I don't know about the necessity to provide multiple alternate providers. If there is only ever going to be one provider then why include a

Re: Http client API

2012-08-15 Thread Mike Duigou
On Aug 15 2012, at 09:06 , Michael McMahon wrote: >> HttpClientProvider:: >> >> - HttpClientProvider JavaDoc uses inconsistent capitalization of HTTP. >> >> - createAsynchronousHttpClient() Since there's only one create method why >> bother to mention that it's "Asynchronous"? >> >> - It's no

Re: Http client API

2012-08-15 Thread Michael McMahon
On 09/08/12 01:49, David M. Lloyd wrote: On 08/07/2012 06:09 PM, Michael McMahon wrote: Hi, A new revision of the Http client API planned for jdk 8 can be viewed at the following link http://cr.openjdk.java.net/~michaelm/httpclient/v0.3/ We would like to review the api on this mailing list

Re: Http client API

2012-08-15 Thread Kurchi Subhra Hazra
ed by the fact that the Iterable can only be used to return one Iterator instance. HttpConnectionCache.CachedConnection:: - I would expect this to be abstract and that client providers would extend. - getCache() to return the client provider. On Aug 7 2012, at 16:09 , Michael McMahon wrote:

Re: Http client API

2012-08-15 Thread Kurchi Subhra Hazra
- HttpClient createClient() -- is this the same as HttpClientProvider.provider().createAsynchronousHttpClient()? yes, and that needs to be documented. Just on this one, the method name createAsynchronousHttpClient() looks like a remnant of our previous API iterations, and I think this should

Re: Use Builder pattern ( was: Re: Http client API)

2012-08-15 Thread Michael McMahon
On 09/08/12 10:50, Chris Hegarty wrote: On 09/08/12 00:00, Jed Wesley-Smith wrote: Michael McMahon writes: A new revision of the Http client API planned for jdk 8 can be viewed at the following link http://cr.openjdk.java.net/~michaelm/httpclient/v0.3/ We would like to review the api on

Re: Http client API

2012-08-15 Thread Michael McMahon
hat the Iterable can only be used to return one Iterator instance. HttpConnectionCache.CachedConnection:: - I would expect this to be abstract and that client providers would extend. - getCache() to return the client provider. On Aug 7 2012, at 16:09 , Michael McMahon wrote: Hi, A new rev

Re: Http client API

2012-08-14 Thread Xuelei Fan
redundant if no compatibility concerns. I was wondering maybe it is >> OK to detach the HostnameVerifier interface and remove the verify() method. >> >> Maybe, you have other concerns that the HttpsConfigurator.verify() >> method is really needed. >> >> Thanks, >&

Re: cross protocol redirects ( was:Re: Http client API )

2012-08-14 Thread Michael McMahon
On 08/08/12 21:35, Chris Hegarty wrote: Great suggestion Anthony, This is something that comes up from time to time. With the clear distinction between java.net.HttpURLConnection and javax.net.ssl.HttpsURLConnection API's then it was a little difficult to do in the existing API, but there is

Re: Http client API

2012-08-14 Thread Michael McMahon
was wondering maybe it is OK to detach the HostnameVerifier interface and remove the verify() method. Maybe, you have other concerns that the HttpsConfigurator.verify() method is really needed. Thanks, Xuelei On 8/8/2012 7:09 AM, Michael McMahon wrote: Hi, A new revision of the Http client A

Review of new Http client API

2012-08-14 Thread Michael McMahon
Hi, (apologies for sending this again) We have just published a draft of a proposed new Http client API [1] for JDK 8. This message has been cc'd to jdk8-dev so that as many people as possible know about it, but the discussion will be on the net-dev list (net-dev@openjdk.java.net)

Review of new Http client API

2012-08-13 Thread Michael McMahon
Hi, We have just published a draft of a proposed new Http client API [1] for JDK 8. This message has been bcc'd to jdk8-dev so that as many people as possible know about it, but the discussion will be on the net-dev list (net-dev@openjdk.java.net). So, folks will have to join that li

Re: Http client API

2012-08-13 Thread Michael McMahon
. Thanks again, Michael. On 08/08/12 00:09, Michael McMahon wrote: Hi, A new revision of the Http client API planned for jdk 8 can be viewed at the following link http://cr.openjdk.java.net/~michaelm/httpclient/v0.3/ We would like to review the api on this mailing list. So, all comments are welcome

Re: Http client API

2012-08-09 Thread Chris Hegarty
/proxy/etc 10) Missing fluent style return from HttpRequest.setRequestBodyLimit 11) Should sendHeaders be specified to allow a null return value. I'm thinking about when setSendExpectContinue is set. -Chris. On 08/08/12 00:09, Michael McMahon wrote: Hi, A new revision of the Http c

Re: Http client API

2012-08-09 Thread Chris Hegarty
lear? - getBodyAsByteBufferSource -- if the same iterator is always returned why not return the iterator rather than an iterable? HttpConnectionCache.CachedConnection:: - I would expect this to be abstract and that client providers would extend. - getCache() to return the client provider. On Aug

Re: Http client API

2012-08-09 Thread Chris Hegarty
el.x.mcma...@oracle.com>>> wrote: Hi, A new revision of the Http client API planned for jdk 8 can be viewed at the following link http://cr.openjdk.java.net/~michaelm/httpclient/v0.3/ <http://cr.openjdk.java.net/~__michae

Use Builder pattern ( was: Re: Http client API)

2012-08-09 Thread Chris Hegarty
On 09/08/12 00:00, Jed Wesley-Smith wrote: Michael McMahon writes: A new revision of the Http client API planned for jdk 8 can be viewed at the following link http://cr.openjdk.java.net/~michaelm/httpclient/v0.3/ We would like to review the api on this mailing list. So, all comments are

Re: Http client API

2012-08-09 Thread Alan Bateman
On 09/08/2012 01:49, David M. Lloyd wrote: On 08/07/2012 06:09 PM, Michael McMahon wrote: Hi, A new revision of the Http client API planned for jdk 8 can be viewed at the following link http://cr.openjdk.java.net/~michaelm/httpclient/v0.3/ We would like to review the api on this mailing list

Re: Http client API

2012-08-08 Thread Sean Chou
ntent type > parser, or one programming model, over another. > > Does this make sense? Have I missed the point of your proposal? Maybe > others have a different view... > > -Chris. > > >> >> >> On Wed, Aug 8, 2012 at 7:09 AM, Michael McMahon >>

Re: Http client API

2012-08-08 Thread David M. Lloyd
On 08/07/2012 06:09 PM, Michael McMahon wrote: Hi, A new revision of the Http client API planned for jdk 8 can be viewed at the following link http://cr.openjdk.java.net/~michaelm/httpclient/v0.3/ We would like to review the api on this mailing list. So, all comments are welcome. Why not

Re: Http client API

2012-08-08 Thread Jed Wesley-Smith
Michael McMahon writes: > A new revision of the Http client API planned for jdk 8 can be viewed > at the following link > > http://cr.openjdk.java.net/~michaelm/httpclient/v0.3/ > > We would like to review the api on this mailing list. > So, all comments are welcome.

Re: Http client API

2012-08-08 Thread Mike Duigou
ys returned why not return the iterator rather than an iterable? HttpConnectionCache.CachedConnection:: - I would expect this to be abstract and that client providers would extend. - getCache() to return the client provider. On Aug 7 2012, at 16:09 , Michael McMahon wrote: >

Re: Http client API

2012-08-08 Thread Chris Hegarty
Oh, my head hurts! ;-) There are already three setBody methods. I agree, a boolean like this can be confusing. A setBodyRestartable(Itr), and setBodyNonRestarable(Itr) may be a possible solution here. But ( what I think you are suggesting too ), Iterable implementations should do the right th

cross protocol redirects ( was:Re: Http client API )

2012-08-08 Thread Chris Hegarty
://javafx-jira.kenai.com/browse/RT-21275 ). The solution to this JavaFX issue says the fix "enhanced code to follow https redirects." So JavaFX seems to already implement this feature. Thanks for your feedback Anthony Vanelverdinghe Op 8/08/2012 1:09, Michael McMahon schreef: Hi, A n

Re: Http client API

2012-08-08 Thread Ian Robertston
Instead of HttpRequest having void setBody(Iterable buffers, boolean isRestartable) what about having two methods: void setBody(Iterable buffers) // presumed restartable void setBody(Iterator buffers) // clearly not restartable Not only does this avoid a potentially confusing boolean par

Re: Http client API

2012-08-08 Thread Anthony Vanelverdinghe
1:09, Michael McMahon schreef: Hi, A new revision of the Http client API planned for jdk 8 can be viewed at the following link http://cr.openjdk.java.net/~michaelm/httpclient/v0.3/ We would like to review the api on this mailing list. So, all comments are welcome. Thanks Michael McMahon.

Re: Http client API

2012-08-08 Thread Xuelei Fan
ove the verify() method. Maybe, you have other concerns that the HttpsConfigurator.verify() method is really needed. Thanks, Xuelei On 8/8/2012 7:09 AM, Michael McMahon wrote: > Hi, > > A new revision of the Http client API planned for jdk 8 can be viewed > at the following link >

Re: Http client API

2012-08-08 Thread Alan Bateman
On 08/08/2012 07:25, Sean Chou wrote: Is it possible to have methods like public abstract HTMLDocument getResponse(String request) in class HttpClient ? I see Chris has replied to this. One other point is that we also need to consider JDK modularization and I don't think we should have any

Re: Http client API

2012-08-08 Thread Chris Hegarty
missed the point of your proposal? Maybe others have a different view... -Chris. On Wed, Aug 8, 2012 at 7:09 AM, Michael McMahon mailto:michael.x.mcma...@oracle.com>> wrote: Hi, A new revision of the Http client API planned for jdk 8 can be viewed at the followin

Re: Http client API

2012-08-07 Thread Sean Chou
Is it possible to have methods like public abstract HTMLDocument getResponse(String request) in class HttpClient ? On Wed, Aug 8, 2012 at 7:09 AM, Michael McMahon < michael.x.mcma...@oracle.com> wrote: > Hi, > > A new revision of the Http client API planned for jdk 8 can be

Http client API

2012-08-07 Thread Michael McMahon
Hi, A new revision of the Http client API planned for jdk 8 can be viewed at the following link http://cr.openjdk.java.net/~michaelm/httpclient/v0.3/ We would like to review the api on this mailing list. So, all comments are welcome. Thanks Michael McMahon.