HTTP 2 client API

Wenbo Zhu wenboz at google.com
Fri Jul 31 17:54:17 UTC 2015


Thanks for the update.

===

Is WebSocket out of the scope now?

== async streams

I.e. how bodies are to be read/written asynchronously, with flow-control
(aka back pressures).

There are many different styles or abstractions. IMO, if reactive streams
are to be included in jdk9, we may want to adopt the same model (if not the
API). Or we follow the NIO2 model (readiness), to not introduce another
concept.



On Fri, Jul 31, 2015 at 12:00 AM, Michael McMahon <
michael.x.mcmahon at oracle.com> wrote:

> Hi Wenbo,
>
> The latest version of the docs is available at:
> http://cr.openjdk.java.net/~michaelm/8087112/2/
> I am hoping to finalize this very soon.
>
> Thanks,
> Michael.
>
>
>
> On 31/07/15 00:26, Wenbo Zhu wrote:
>
> Has the API docs been moved? Is there an updated version of it?
>
> Thanks,
> Wenbo
>
> On Mon, Mar 9, 2015 at 9:27 AM, Michael McMahon <
> michael.x.mcmahon at oracle.com> wrote:
>
>> Hi,
>>
>> JEP 110 HTTP 2 client
>>
>> in JDK 9, is defining and implementing a new API for HTTP which also
>> supports
>> the new HTTP version 2 that has recently been working its way through the
>> IETF.
>> The work also includes support for websockets (RFC 6455).
>>
>> In fact, the majority of the API is agnostic about the HTTP protocol
>> version, with only minor
>> configuration settings, and support for multiple responses (Http server
>> push) having any direct impact.
>>
>> The HTTP API is defined around three main types (HttpClient, which is the
>> central
>> point for configuration of SSL, executor service cookie management etc),
>> HttpRequest
>> and HttpResponse (which should be self explanatory).
>>
>> Requests are sent/received either synchronously (blocking) or in a
>> non-blocking (asynchronous)
>> mode using java.util.future.CompletableFuture which is a powerful new
>> framework for
>> asynchronous execution introduced in JDK 8.
>>
>> The API docs can be seen at the link below:
>>
>> http://cr.openjdk.java.net/~michaelm/httpclient/01/
>>
>> All new classes and interfaces belong to the java.net package.
>>
>> A prototype implementation of this API supporting HTTP/1.1 only, is
>> available and will
>> be uploaded into the JDK 9 sandbox forest in the coming day or two.
>>
>> Comments welcome!
>>
>> Thanks,
>> Michael.
>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/net-dev/attachments/20150731/00d06496/attachment-0001.html>


More information about the net-dev mailing list