An HttpClient can be used to send requests and retrieve their responses. Created through [[HttpClient.newBuilder]]. The builder can be used to configure per-client state, like: the preferred protocol version ( HTTP/1.1 or HTTP/2 ), whether to follow redirects, a proxy, an authenticator, etc. Once built, an HttpClient is immutable, and can be used to send multiple requests.

See java.net.http.HttpClient for full documentation

Hierarchy

  • HttpClient

Constructors

Methods

  • Returns a new HttpClient with default settings.

    Returns HttpClient

Generated using TypeDoc