MCPcopy
hub / github.com/valyala/fasthttp / WriteTo

Method WriteTo

http.go:1652–1654  ·  view source on GitHub ↗

WriteTo writes request to w. It implements io.WriterTo.

(w io.Writer)

Source from the content-addressed store, hash-verified

1650
1651// WriteTo writes request to w. It implements io.WriterTo.
1652func (req *Request) WriteTo(w io.Writer) (int64, error) {
1653 return writeBufio(req, w)
1654}
1655
1656// WriteTo writes response to w. It implements io.WriterTo.
1657func (resp *Response) WriteTo(w io.Writer) (int64, error) {

Callers 3

TestFragmentInURIRequestFunction · 0.95
TestRequestWriteToFunction · 0.95
copyZeroAllocFunction · 0.45

Calls 1

writeBufioFunction · 0.85

Tested by 2

TestFragmentInURIRequestFunction · 0.76
TestRequestWriteToFunction · 0.76