Beispiel #1
0
func (mux *Mux) Head(pattern web.PatternType, h handler) {
	goji.Head(pattern, func(c web.C, w http.ResponseWriter, r *http.Request) {
		mux.handleRequest(c, w, r, h)
	})
}
Beispiel #2
0
func (ctr *Controller) RouteHead(rt *Route) {
	goji.Head(rt.Pattern, handlerWrap(rt))
}