MCPcopy
hub / github.com/Allenxuxu/gev / WriteTo

Method WriteTo

plugins/websocket/ws/http.go:301–304  ·  view source on GitHub ↗

WriteTo implements HandshakeHeader (and io.WriterTo) interface.

(w io.Writer)

Source from the content-addressed store, hash-verified

299
300// WriteTo implements HandshakeHeader (and io.WriterTo) interface.
301func (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.

Callers

nothing calls this directly

Calls 1

WriteStringMethod · 0.80

Tested by

no test coverage detected