MCPcopy Create free account

hub / github.com/bmizerany/pat / functions

Functions35 in github.com/bmizerany/pat

↓ 18 callersMethodGet
Get will register a pattern with a handler for GET requests. It also registers pat for HEAD requests. If this needs to be overridden, use Head before
mux.go:157
↓ 12 callersMethodServeHTTP
ServeHTTP matches r.URL.Path against its routing table using the rules described above.
mux.go:111
↓ 12 callersFunctionnewRequest
(method, urlStr string, body io.Reader)
mux_test.go:265
↓ 11 callersFunctionNew
New returns a new PatternServeMux.
mux.go:105
↓ 10 callersMethodAdd
Add will register a pattern with a handler for meth requests.
mux.go:188
↓ 4 callersFunctionmatch
(s string, f func(byte) bool, i int)
mux.go:293
↓ 3 callersMethodtry
(path string)
mux.go:254
↓ 2 callersMethodPost
Post will register a pattern with a handler for POST requests.
mux.go:163
↓ 2 callersFunctionmatchPart
(b byte)
mux.go:287
↓ 1 callersMethodPatch
Patch will register a pattern with a handler for PATCH requests.
mux.go:183
↓ 1 callersMethodPut
Put will register a pattern with a handler for PUT requests.
mux.go:168
↓ 1 callersFunctionTail
Tail returns the trailing string in path after the final slash for a pat ending with a slash. Examples: Tail("/hello/:title/", "/hello/mr/mizerany"
mux.go:225
↓ 1 callersMethodadd
(meth, pat string, h http.Handler, redirect bool)
mux.go:192
↓ 1 callersFunctionisAlpha
(ch byte)
mux.go:304
↓ 1 callersFunctionisDigit
(ch byte)
mux.go:308
FunctionBenchmarkPatternMatching
(b *testing.B)
bench_test.go:8
MethodDel
Del will register a pattern with a handler for DELETE requests.
mux.go:173
MethodHead
Head will register a pattern with a handler for HEAD requests.
mux.go:150
FunctionHelloServer
hello world, the web server
example/hello.go:12
FunctionHelloServer
hello world, the web server
example/patexample/hello_appengine.go:18
MethodOptions
Options will register a pattern with a handler for OPTIONS requests.
mux.go:178
FunctionTestEscapedUrl
(t *testing.T)
mux_test.go:247
FunctionTestMethodPatch
(t *testing.T)
mux_test.go:225
FunctionTestNotFound
(t *testing.T)
mux_test.go:209
FunctionTestPatImplicitRedirect
(t *testing.T)
mux_test.go:151
FunctionTestPatMatch
(t *testing.T)
mux_test.go:14
FunctionTestPatNoParams
Check to make sure we don't pollute the Raw Query when we have no parameters
mux_test.go:114
FunctionTestPatOnlyUserParams
Check to make sure we don't pollute the Raw Query when there are parameters but no pattern variables
mux_test.go:133
FunctionTestPatRoutingHit
(t *testing.T)
mux_test.go:65
FunctionTestPatRoutingMethodNotAllowed
(t *testing.T)
mux_test.go:83
FunctionTestTail
(t *testing.T)
mux_test.go:187
FunctionaddSlashRedirect
(w http.ResponseWriter, r *http.Request)
mux.go:212
Functioninit
()
example/patexample/hello_appengine.go:22
FunctionisAlnum
(ch byte)
mux.go:312
Functionmain
()
example/hello.go:16