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

Method Create

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

Source from the content-addressed store, hash-verified

10type Handler struct{}
11
12func (h *Handler) Create(w http.ResponseWriter, r *http.Request) {
13 w.WriteHeader(http.StatusCreated)
14 w.Write([]byte("Invoice created!"))
15}
16
17func (h *Handler) FindByID(w http.ResponseWriter, r *http.Request) {
18 monster, exists := loadInvoices()[r.PathValue("id")]

Callers

nothing calls this directly

Calls 1

WriteHeaderMethod · 0.80

Tested by

no test coverage detected