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

Method SetStatusCode

testutil/test_server.go:70–73  ·  view source on GitHub ↗

SetStatusCode sets the status code that will be returned by the server

(status int)

Source from the content-addressed store, hash-verified

68
69// SetStatusCode sets the status code that will be returned by the server
70func (s *TestServer) SetStatusCode(status int) *TestServer {
71 s.status = status
72 return s
73}
74
75// SetBody sets the body that will be returned by the server
76func (s *TestServer) SetBody(data []byte) *TestServer {

Calls

no outgoing calls