Java HTTP Client API (incubator module)
DRAFT 9-Ubuntu+0-9b154-1
Module jdk.incubator.httpclient

Package jdk.incubator.http

High level HTTP and WebSocket API

This provides a high-level client interfaces to HTTP (versions 1.1 and 2) and WebSocket. The main types defined are:

The API functions asynchronously (using CompletableFuture) and work is done on the threads supplied by the client's Executor where practical.

HttpClient also provides a simple synchronous mode, where all work may be done on the calling thread.

CompletableFutures returned by this API will throw UnsupportedOperationException for their obtrudeValue and obtrudeException methods. Invoking the cancel method on a CompletableFuture returned by this API will not interrupt the underlying operation, but may be useful to complete, exceptionally, dependent stages that have not already completed.

Unless otherwise stated, null parameter values will cause methods of all classes in this package to throw NullPointerException.

Since:
9
Skip navigation links
Java HTTP Client API (incubator module)
DRAFT 9-Ubuntu+0-9b154-1

Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2015, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.

DRAFT 9-Ubuntu+0-9b154-1