Module codec

Source
Expand description

frame codec impl

Structs§

BytesCodec
recv/send bytes message
BytesRecv
recv part of bytes message
BytesSend
send part of bytes message
DeflateCodec
recv/send deflate message
DeflateReadState
deflate frame read state
DeflateRecv
recv part of deflate message
DeflateSend
send part of deflate message
DeflateWriteState
deflate frame write state
FrameCodec
recv/send websocket frame
FrameConfig
frame send/recv config
FrameReadState
websocket frame reader
FrameRecv
recv part of websocket stream
FrameSend
send part of websocket frame
FrameWriteState
websocket writing state
PMDConfig
permessage-deflate
ReadStreamHandler
helper struct to handle de stream
StringCodec
recv/send text message
StringRecv
recv part of text message
StringSend
send part of text message
WriteStreamHandler
helper struct to handler com stream
ZLibCompressStream
zlib compress stream
ZLibDeCompressStream

Enums§

ValidateUtf8Policy
text frame utf-8 checking policy
WindowBit
permessage-deflate window bit

Constants§

CLIENT_MAX_WINDOW_BITS
client_max_window_bits param
CLIENT_NO_CONTEXT_TAKEOVER
client_no_context_takeover param
EXT_ID
permessage-deflate id
SERVER_MAX_WINDOW_BITS
server_max_window_bits param
SERVER_NO_CONTEXT_TAKEOVER
server_no_context_takeover param
ZLIB_VERSION
zlib version

Traits§

Split
split something into two parts

Functions§

apply_mask
apply websocket mask to buf by given key
default_handshake_handler
do standard handshake check and return response
deflate_handshake_handler
permessage-deflate req handler