Interface | Description |
---|---|
HttpHeaders |
A read-only view of a set of received HTTP headers.
|
HttpRequest.BodyProcessor |
A request processor which obtains the request body from some source.
|
HttpResponse.BodyProcessor<T> |
A processor for response bodies, which determines the type of the
response body returned from
HttpResponse . |
HttpResponse.MultiProcessor<T> |
A response processor for a HTTP/2 multi response.
|
WebSocket |
A WebSocket client conforming to RFC 6455.
|
WebSocket.Builder |
A builder for creating
WebSocket instances. |
WebSocket.Listener |
A listener for events and messages on a
WebSocket . |
Class | Description |
---|---|
HttpClient |
A container for configuration information common to multiple
HttpRequest s. |
HttpClient.Builder |
A builder of immutable
HttpClient s. |
HttpRequest |
Represents one HTTP request which can be sent to a server.
|
HttpRequest.Builder |
A builder of
HttpRequest s. |
HttpResponse |
Represents a response to a
HttpRequest . |
WebSocket.CloseCode |
A
WebSocket close status code. |
Enum | Description |
---|---|
HttpClient.Redirect |
Defines automatic redirection policy.
|
HttpClient.Version |
The HTTP protocol version.
|
WebSocket.MessagePart |
A marker used by
WebSocket.Listener in cases where a partial
message may be received. |
Exception | Description |
---|---|
HttpTimeoutException |
Thrown when a response is not received within a specified time period.
|
WebSocketHandshakeException |
An exception used to signal the opening handshake failed.
|
CompletableFuture
) modes are provided for HTTP.
WebSocket works in asynchronous mode only. The main types defined are:
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-internal+0-2016-10-04-161205.jjg.dev.8159855.tools-spi