http-client-branch: add link to illegal WebSocket headers http-client-branch
authorchegar
Tue, 20 Feb 2018 09:55:18 +0000
branchhttp-client-branch
changeset 56156 336393c75a93
parent 56152 47221b8e3a51
child 56157 3f29747a858a
http-client-branch: add link to illegal WebSocket headers
src/java.net.http/share/classes/java/net/http/WebSocket.java
--- a/src/java.net.http/share/classes/java/net/http/WebSocket.java	Mon Feb 19 14:53:00 2018 +0000
+++ b/src/java.net.http/share/classes/java/net/http/WebSocket.java	Tue Feb 20 09:55:18 2018 +0000
@@ -115,8 +115,10 @@
          * Adds the given name-value pair to the list of additional HTTP headers
          * sent during the opening handshake.
          *
-         * <p> Headers defined in WebSocket Protocol are illegal. If this method
-         * is not invoked, no additional HTTP headers will be sent.
+         * <p> Headers defined in
+         * <a href="https://tools.ietf.org/html/rfc6455#section-11.3">WebSocket
+         * Protocol</a> are illegal. If this method is not invoked, no
+         * additional HTTP headers will be sent.
          *
          * @param name
          *         the header name