WriteTo implements HandshakeHeader (and io.WriterTo) interface.
(w io.Writer)
| 299 | |
| 300 | // WriteTo implements HandshakeHeader (and io.WriterTo) interface. |
| 301 | func (s HandshakeHeaderString) WriteTo(w io.Writer) (int64, error) { |
| 302 | n, err := io.WriteString(w, string(s)) |
| 303 | return int64(n), err |
| 304 | } |
| 305 | |
| 306 | // HandshakeHeaderBytes is an adapter to allow the use of headers represented |
| 307 | // by ordinary slice of bytes as HandshakeHeader. |
nothing calls this directly
no test coverage detected