[WEBSOCKET_SPEC-84] Typo WebSocketResponse#getHeaders() Created: 03/Jan/13  Updated: 09/Jan/13  Resolved: 09/Jan/13

Status: Resolved
Project: websocket-spec
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: jitu Assignee: dannycoward
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Tags: v012



  • Return the list of Http Headers that came with the handshake request.
  • @return the headers.
    Map<String, List<String>> getHeaders();

Note "handshake request" instead of "handshake response" in the above javadoc

Also, the returned Map is modifiable and any changes to the map would be reflected in the handshake response headers. This is not clear from javadoc.

Will the returned Map would be empty or filled with headers the runtime is planning to send ?

Comment by dannycoward [ 09/Jan/13 ]

I have updated the javadoc to detail what the handshake response is.

The ClientEndpointConfiguration and ServerEndpointConfiguration interception methods clarify the semantics of what the HandshakeResponse objects represent at the two key points in the opening handshake interaction, and what can be inspected/modified when.

Generated at Tue Oct 13 07:34:23 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.