| Package | Description |
|---|---|
| java.net.http |
High level HTTP and WebSocket API
|
| Modifier and Type | Method | Description |
|---|---|---|
abstract HttpClient |
HttpClient.Builder.build() |
Returns a
HttpClient built from the current state of this
builder. |
abstract HttpClient |
HttpRequest.client() |
Returns this request's
HttpClient. |
static HttpClient |
HttpClient.getDefault() |
Returns the default
HttpClient that is used when a HttpRequest is created without specifying a client. |
| Modifier and Type | Method | Description |
|---|---|---|
static WebSocket.Builder |
WebSocket.newBuilder(URI uri,
HttpClient client,
WebSocket.Listener listener) |
Creates a builder of
WebSockets connected to the given URI and
receiving events with the given Listener. |
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-Ubuntu+0-9b143-1ubuntu1