MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / SetBody

Method SetBody

testutil/test_server.go:76–79  ·  view source on GitHub ↗

SetBody sets the body that will be returned by the server

(data []byte)

Source from the content-addressed store, hash-verified

74
75// SetBody sets the body that will be returned by the server
76func (s *TestServer) SetBody(data []byte) *TestServer {
77 s.data = data
78 return s
79}
80
81// SetHeaders adds headers that will be returned by the server.
82// Odd arguments are treated as keys, even arguments as values.

Calls

no outgoing calls