MCPcopy Index your code
hub / github.com/dreamsofcode-io/nethttp / Create

Method Create

monster/handler.go:11–15  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

9type Handler struct{}
10
11func (h *Handler) Create(w http.ResponseWriter, r *http.Request) {
12 w.WriteHeader(http.StatusCreated)
13 log.Println("received request to create a monster")
14 w.Write([]byte("Monster created!"))
15}
16
17func (h *Handler) FindByID(w http.ResponseWriter, r *http.Request) {
18 log.Println("handling READ request - Method:", r.Method)

Callers

nothing calls this directly

Calls 1

WriteHeaderMethod · 0.80

Tested by

no test coverage detected