© Kishori Sharan 2017

Kishori Sharan, Java 9 Revealed, 10.1007/978-1-4842-2592-9_14

14. The HTTP/2 Client API

Kishori Sharan

(1)Montgomery, Alabama, USA

In this chapter, you will learn:

  • What the HTTP/2 Client API is

  • How to create HTTP clients

  • How to make HTTP requests

  • How to receive HTTP responses

  • How to create WebSocket endpoints

  • How to push unsolicited data from server to client

JDK 9 delivered the HTTP/2 Client API as an incubator module named jdk.incubator.httpclient. The module exports a jdk.incubator.http package that contains all public APIs. An incubator module is not part of the Java SE. In Java SE 10, either it will be standardized and become part of Java SE 10 or it will be removed. Refer to the web page at http://openjdk.java.net/jeps/11 ...

Get Java 9 Revealed: For Early Adoption and Migration now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.