Skip to content

Commit e30049f

Browse files
abhinayagarwalkevinrushforth
authored andcommitted
8242077: Add information about HTTP/2 and HttpClient usage in WebEngine
Reviewed-by: kcr, ghb
1 parent e0ffca3 commit e30049f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/javafx.web/src/main/java/javafx/scene/web/WebEngine.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,12 @@ public void exit() {
326326
* unconditionally.
327327
* </p>
328328
*
329+
* <p>
330+
* Starting with JavaFX 14, <a href="https://tools.ietf.org/html/rfc7540">HTTP/2</a> support has been added to WebEngine.
331+
* This is achieved by using {@link java.net.http.HttpClient} instead of {@link URLConnection}. HTTP/2 is activated
332+
* by default when JavaFX 14 (or later) is used with JDK 12 (or later).
333+
* </p>
334+
*
329335
* <p><b>Threading</b></p>
330336
* <p>{@code WebEngine} objects must be created and accessed solely from the
331337
* JavaFX Application thread. This rule also applies to any DOM and JavaScript

0 commit comments

Comments
 (0)