support for handling headers of websocket handshake