C# 클래스 Microsoft.AspNetCore.WebSockets.Protocol.HandshakeHelpers

파일 보기 프로젝트 열기: AdaptiveConsulting/ReactiveTraderCloud 1 사용 예제들

공개 메소드들

메소드 설명
CheckSupportedWebSocketRequest ( string method, string>.IEnumerable headers ) : bool
CreateRequestKey ( ) : string

"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 requestKey ) : 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 key, string subProtocol ) : string>>.IEnumerable
IsRequestKeyValid ( string value ) : bool

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 value ) : bool

메소드 상세

CheckSupportedWebSocketRequest() 공개 정적인 메소드

public static CheckSupportedWebSocketRequest ( string method, string>.IEnumerable headers ) : bool
method string
headers string>.IEnumerable
리턴 bool

CreateRequestKey() 공개 정적인 메소드

"The value of this header field MUST be a nonce consisting of a randomly selected 16-byte value that has been base64-encoded."
public static CreateRequestKey ( ) : string
리턴 string

CreateResponseKey() 공개 정적인 메소드

"...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'"
public static CreateResponseKey ( string requestKey ) : string
requestKey string
리턴 string

GenerateResponseHeaders() 공개 정적인 메소드

public static GenerateResponseHeaders ( string key, string subProtocol ) : string>>.IEnumerable
key string
subProtocol string
리턴 string>>.IEnumerable

IsRequestKeyValid() 공개 정적인 메소드

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."
public static IsRequestKeyValid ( string value ) : bool
value string
리턴 bool

IsResponseKeyValid() 공개 정적인 메소드

public static IsResponseKeyValid ( string value ) : bool
value string
리턴 bool