MCPcopy Create free account
hub / github.com/bepass-org/proxy / WithBytesPool

Function WithBytesPool

pkg/http/server.go:118–122  ·  view source on GitHub ↗
(bytesPool statute.BytesPool)

Source from the content-addressed store, hash-verified

116}
117
118func WithBytesPool(bytesPool statute.BytesPool) ServerOption {
119 return func(s *Server) {
120 s.BytesPool = bytesPool
121 }
122}
123
124func (s *Server) ServeConn(conn net.Conn) error {
125 reader := bufio.NewReader(conn)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected