WriteTo implements HandshakeHeader (and io.WriterTo) interface.
(w io.Writer)
| 455 | |
| 456 | // WriteTo implements HandshakeHeader (and io.WriterTo) interface. |
| 457 | func (s HandshakeHeaderString) WriteTo(w io.Writer) (int64, error) { |
| 458 | n, err := io.WriteString(w, string(s)) |
| 459 | return int64(n), err |
| 460 | } |
| 461 | |
| 462 | // HandshakeHeaderBytes is an adapter to allow the use of headers represented |
| 463 | // by ordinary slice of bytes as HandshakeHeader. |
nothing calls this directly
no test coverage detected