Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bmizerany/pat
/ functions
Functions
35 in github.com/bmizerany/pat
⨍
Functions
35
◇
Types & classes
2
↓ 18 callers
Method
Get
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 callers
Method
ServeHTTP
ServeHTTP matches r.URL.Path against its routing table using the rules described above.
mux.go:111
↓ 12 callers
Function
newRequest
(method, urlStr string, body io.Reader)
mux_test.go:265
↓ 11 callers
Function
New
New returns a new PatternServeMux.
mux.go:105
↓ 10 callers
Method
Add
Add will register a pattern with a handler for meth requests.
mux.go:188
↓ 4 callers
Function
match
(s string, f func(byte) bool, i int)
mux.go:293
↓ 3 callers
Method
try
(path string)
mux.go:254
↓ 2 callers
Method
Post
Post will register a pattern with a handler for POST requests.
mux.go:163
↓ 2 callers
Function
matchPart
(b byte)
mux.go:287
↓ 1 callers
Method
Patch
Patch will register a pattern with a handler for PATCH requests.
mux.go:183
↓ 1 callers
Method
Put
Put will register a pattern with a handler for PUT requests.
mux.go:168
↓ 1 callers
Function
Tail
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 callers
Method
add
(meth, pat string, h http.Handler, redirect bool)
mux.go:192
↓ 1 callers
Function
isAlpha
(ch byte)
mux.go:304
↓ 1 callers
Function
isDigit
(ch byte)
mux.go:308
Function
BenchmarkPatternMatching
(b *testing.B)
bench_test.go:8
Method
Del
Del will register a pattern with a handler for DELETE requests.
mux.go:173
Method
Head
Head will register a pattern with a handler for HEAD requests.
mux.go:150
Function
HelloServer
hello world, the web server
example/hello.go:12
Function
HelloServer
hello world, the web server
example/patexample/hello_appengine.go:18
Method
Options
Options will register a pattern with a handler for OPTIONS requests.
mux.go:178
Function
TestEscapedUrl
(t *testing.T)
mux_test.go:247
Function
TestMethodPatch
(t *testing.T)
mux_test.go:225
Function
TestNotFound
(t *testing.T)
mux_test.go:209
Function
TestPatImplicitRedirect
(t *testing.T)
mux_test.go:151
Function
TestPatMatch
(t *testing.T)
mux_test.go:14
Function
TestPatNoParams
Check to make sure we don't pollute the Raw Query when we have no parameters
mux_test.go:114
Function
TestPatOnlyUserParams
Check to make sure we don't pollute the Raw Query when there are parameters but no pattern variables
mux_test.go:133
Function
TestPatRoutingHit
(t *testing.T)
mux_test.go:65
Function
TestPatRoutingMethodNotAllowed
(t *testing.T)
mux_test.go:83
Function
TestTail
(t *testing.T)
mux_test.go:187
Function
addSlashRedirect
(w http.ResponseWriter, r *http.Request)
mux.go:212
Function
init
()
example/patexample/hello_appengine.go:22
Function
isAlnum
(ch byte)
mux.go:312
Function
main
()
example/hello.go:16