MCPcopy Create free account
hub / github.com/coderanger/migrations-operator / ServeHTTP

Method ServeHTTP

http/ready.go:41–48  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

39}
40
41func (h *readyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
42 ready, err := h.handle(w, r)
43 if err != nil {
44 http.Error(w, err.Error(), http.StatusBadRequest)
45 } else {
46 fmt.Fprintf(w, "%v", ready)
47 }
48}
49
50func (h *readyHandler) handle(w http.ResponseWriter, r *http.Request) (bool, error) {
51 // Parse args.

Callers

nothing calls this directly

Calls 1

handleMethod · 0.95

Tested by

no test coverage detected