# Uses of Package
java.net.http

Packages that use java.net.http
Package
Description
java.net.http
HTTP Client and WebSocket APIs

- Classes in java.net.http used by java.net.http
  Class
  Description
  HttpClient
  An HTTP Client.
  HttpClient.Builder
  A builder of HTTP Clients.
  HttpClient.Redirect
  Defines the automatic redirection policy.
  HttpClient.Version
  The HTTP protocol version.
  HttpHeaders
  A read-only view of a set of HTTP headers.
  HttpOption
  This interface is used to provide additional request configuration option hints on how an HTTP request/response exchange should be carried out by the `HttpClient` implementation.
  HttpOption.Http3DiscoveryMode
  This enumeration can be used to help the `HttpClient` decide how an HTTP/3 exchange should be established, and can be provided as the value of the `HttpOption.H3_DISCOVERY` option to `Builder.setOption`.
  HttpRequest
  An HTTP request.
  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.
  HttpResponse.PushPromiseHandler.PushId
  Represents a HTTP/3 PushID.
  HttpResponse.ResponseInfo
  Initial response information supplied to a `BodyHandler` when a response is initially received and before the body is processed.
  HttpTimeoutException
  Thrown when a response is not received within a specified time period.
  WebSocket
  A WebSocket Client.
  WebSocket.Builder
  A builder of WebSocket Clients.
  WebSocket.Listener
  The receiving interface of `WebSocket`.
  WebSocketHandshakeException
  Thrown when the opening handshake has failed.