support send custom headers when handshaking