HandshakeHelpers Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public ref class HandshakeHelpers abstract sealed
public static class HandshakeHelpers
type HandshakeHelpers = class
Public Class HandshakeHelpers
- Inheritance
-
HandshakeHelpers
Properties
NeededHeaders |
Gets request headers needed process the handshake on the server. |
Methods
CheckSupportedWebSocketRequest(String, IEnumerable<KeyValuePair<String,String>>) | |
CreateRequestKey() |
"The value of this header field MUST be a nonce consisting of a randomly selected 16-byte value that has been base64-encoded." |
CreateResponseKey(String) |
"...the base64-encoded SHA-1 of the concatenation of the |Sec-WebSocket-Key| (as a string, not base64-decoded) with the string '258EAFA5-E914-47DA-95CA-C5AB0DC85B11'" |
GenerateResponseHeaders(String, String) | |
IsRequestKeyValid(String) |
Validates the Sec-WebSocket-Key request header "The value of this header field MUST be a nonce consisting of a randomly selected 16-byte value that has been base64-encoded." |
IsResponseKeyValid(String) |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for