public class HandshakeResponse extends HandshakeFrame
Constructor and Description |
---|
HandshakeResponse(int status,
String reason)
Constructs a Web Socket handshake response frame.
|
Modifier and Type | Method and Description |
---|---|
String |
getReason()
Return the reason text of the HTTP response
|
int |
getStatus()
Return the status code of the HTTP response
|
addValue, getNames, getValue, hasValue
public HandshakeResponse(int status, String reason)
status
- the status code of the HTTP responsereason
- the reason text of the HTTP responsepublic int getStatus()
public String getReason()
Copyright © 2017–2022 SNF4J.ORG. All rights reserved.