MCPcopy Index your code
hub / github.com/gobwas/ws / WriteTo

Method WriteTo

http.go:457–460  ·  view source on GitHub ↗

WriteTo implements HandshakeHeader (and io.WriterTo) interface.

(w io.Writer)

Source from the content-addressed store, hash-verified

455
456// WriteTo implements HandshakeHeader (and io.WriterTo) interface.
457func (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.

Callers

nothing calls this directly

Calls 1

WriteStringMethod · 0.80

Tested by

no test coverage detected