func acceptMethod(m string, h http.Handler) http.Handler {
	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		if r.Method != m {
			w.WriteHeader(http.StatusMethodNotAllowed)
			return
		}
		h.ServeHTTP(w, r)
	})
}
// acceptMethod decorates a http.Handler, ensuring that the given HTTP method
// is used in the request.
acceptMethod decorates a http.Handler, ensuring that the given HTTP method
is used in the request.
// acceptMethod decorates a http . Handler ensuring that the given HTTP method // is used in the request .
func acceptMethod(m string, h http.Handler) http.Handler {
	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		if r.Method != m {
			w.WriteHeader(http.StatusMethodNotAllowed)
			return
		}
		h.ServeHTTP(w, r)
	})
}
func acceptMethod ( m string , h http . Handler ) http . Handler { return http . HandlerFunc ( func ( w http . ResponseWriter , r * http . Request ) { if r . Method != m { w . WriteHeader ( http . StatusMethodNotAllowed ) return } h . ServeHTTP ( w , r ) } ) }
acceptMethod decorates a http.Handler, ensuring that the given HTTP method
is used in the request.
acceptMethod decorates a http . Handler ensuring that the given HTTP method is used in the request .