Java 9 and HTTP/2

July 24, 2015 | 1 minute read
Text Size 100%:

What is in Java 9? In addition to Modularity, Java 9 will provide a number of new features that are part of the Java Enhancement Proposals (JEPs) in OpenJDK. In this article, Ben Evans who holds a seat on Java Community Process Executive Committee describes new JEPs “that may well have the biggest impact on developers' working lives during the lifetime of Java 9” as he explains. One of them is the new Java API for HTTP, which will be independent of HTTP versions while supporting the functionality of latest versions like HTTP/2

He gives code examples for:
  • A simple HTTP request
  • A long-running request to a background VM-managed thread via sendAsync():
Ben recommends anyone to experiment with the API by checking out the source using Mercurial and then following the AdoptOpenJDK build instructions with your checked out code. Read the article!

Yolande Poirier

Yolande Poirier manages the online experience for the world's biggest IT community. She empowers developers to successfully grow their projects, businesses, and careers. Telling the story of how people use technology, she curates technical content, interviews IT professionals around the world, and write blogs about Java technologies and projects. She is a speaker at international conferences and JavaOne Rock Star, this year's track lead of the developer community day and a long time member of @jduchess, a network of women in Java. She manages @Java, a network of over 350,000 developer enthusiasts.

Previous Post

JavaOne 2015 Track Highlights: Core Java Platform

Yolande Poirier | 2 min read

Next Post

JShell and REPL in Java 9

Yolande Poirier | 1 min read