methods Method bouncer Example func(w http.ResponseWriter, req *http.Request) { m := methods.Allow("get", "post") if !m.Allowed(req) { // handle illegal methods } // OK! } License MIT