java.net.http (Java SE 11 & JDK 11 [ad-hoc build]) (original) (raw)
Since:
11
- Interface Summary
Interface Description HttpClient.Builder A builder of HTTP Clients. HttpRequest.BodyPublisher A BodyPublisher converts high-level Java objects into a flow of byte buffers suitable for sending as a request body. HttpRequest.Builder A builder of HTTP requests. HttpResponse An HTTP response. HttpResponse.BodyHandler A handler for response bodies. HttpResponse.BodySubscriber A BodySubscriber consumes response body bytes and converts them into a higher-level Java type. HttpResponse.PushPromiseHandler A handler for push promises. WebSocket A WebSocket client. WebSocket.Builder A builder of WebSocket instances. WebSocket.Listener The receiving interface of WebSocket. - Class Summary
Class Description HttpClient An HTTP Client. HttpHeaders A read-only view of a set of HTTP headers. HttpRequest An HTTP request. HttpRequest.BodyPublishers Implementations of BodyPublisher that implement various useful publishers, such as publishing the request body from a String, or from a file. HttpResponse.BodyHandlers Implementations of BodyHandler that implement various useful handlers, such as handling the response body as a String, or streaming the response body to a file. HttpResponse.BodySubscribers Implementations of BodySubscriber that implement various useful subscribers, such as converting the response body bytes into a String, or streaming the bytes to a file. - Enum Summary
Enum Description HttpClient.Redirect Defines the automatic redirection policy. HttpClient.Version The HTTP protocol version. - Exception Summary
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.
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2018, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.
DRAFT 11-internal+0-adhoc.chhegar.open