MCPcopy Create free account
hub / github.com/corestoreio/pkg / ServeHTTP

Method ServeHTTP

util/cstesting/http_users.go:128–134  ·  view source on GitHub ↗

ServeHTTP starts the testing and the request gets called with http.Handler. You might run into a race condition when trying to add a request body (an io.ReadCloser), because multiple reads and writes into the buffer. Use the function ServeHTTPNewRequest() if you need for each call to http.Handler a

(r *http.Request, h http.Handler)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 1

serveMethod · 0.95