Exemplo n.º 1
0
/*
Put returns a Pat route that only matches the PUT HTTP method.
*/
func Put(pat string) goji.Pattern {
	return pattern.WithMethods(New(pat), "PUT")
}
Exemplo n.º 2
0
/*
Patch returns a Pat route that only matches the PATCH HTTP method.
*/
func Patch(pat string) goji.Pattern {
	return pattern.WithMethods(New(pat), "PATCH")
}
Exemplo n.º 3
0
/*
Options returns a Pat route that only matches the OPTIONS HTTP method.
*/
func Options(pat string) goji.Pattern {
	return pattern.WithMethods(New(pat), "OPTIONS")
}
Exemplo n.º 4
0
/*
Head returns a Pat route that only matches the HEAD HTTP method.
*/
func Head(pat string) goji.Pattern {
	return pattern.WithMethods(New(pat), "HEAD")
}
Exemplo n.º 5
0
/*
Get returns a Pat route that only matches the GET and HEAD HTTP method. HEAD
requests are handled transparently by net/http.
*/
func Get(pat string) goji.Pattern {
	return pattern.WithMethods(New(pat), "GET", "HEAD")
}
Exemplo n.º 6
0
/*
Delete returns a Pat route that only matches the DELETE HTTP method.
*/
func Delete(pat string) goji.Pattern {
	return pattern.WithMethods(New(pat), "DELETE")
}