MCPcopy Create free account

hub / github.com/beego/mux / functions

Functions50 in github.com/beego/mux

↓ 17 callersMethodGet
Get registers a new GET route for a path with matching handler in the Mux.
mux.go:23
↓ 16 callersFunctionRequest
(method, url string, body io.Reader)
mux_test.go:13
↓ 15 callersMethodHandle
Handle registers a new handler with method and path in the Mux. For GET, POST, PUT, PATCH and DELETE requests the respective shortcut functions can be
mux.go:66
↓ 12 callersFunctionNew
New returns a Mux instance.
mux.go:18
↓ 7 callersFunctionParams
Params return the router params
params.go:15
↓ 6 callersMethodGetHandler
GetHandler ... GetHandler returns handler by method that defined on the node trie := New() trie.Parse("/api").Handle("GET", func handler1() {}) trie.
tree.go:443
↓ 6 callersMethodgetRootNode
getRootNode will return the Node whose parent is nil
tree.go:326
↓ 5 callersMethodParse
Parse will parse the pattern and returns the endpoint node for the pattern. trie := New() node1 := trie.Parse("/a") node2 := trie.Parse("/a/b") node3
tree.go:107
↓ 4 callersFunctionNewTrie
NewTrie returns a trie trie := New() disable CaseSensitive, PathClean and StrictSlash trie := New(Options{})
tree.go:71
↓ 3 callersMethodHead
Head registers a new HEAD route for a path with matching handler in the Mux.
mux.go:28
↓ 3 callersMethodMatch
Match try to match path. It will returns a Matched instance that includes *Node, Params when matching success, otherwise a nil. matched, err := trie.
tree.go:127
↓ 3 callersMethodPost
Post registers a new POST route for a path with matching handler in the Mux.
mux.go:33
↓ 3 callersFunctionbenchRequests
(b *testing.B, router http.Handler, routes []route)
bench_test.go:364
↓ 3 callersFunctionbenchRoutes
(b *testing.B, router http.Handler, routes []route)
bench_test.go:345
↓ 3 callersFunctioncalcMem
(name string, load func())
bench_test.go:291
↓ 3 callersMethodgetChild
getChild return the static key
tree.go:279
↓ 3 callersFunctionmatchNode
(parent *Node, segment, path string)
tree.go:471
↓ 3 callersFunctionregexpSegment
(seg string)
tree.go:554
↓ 2 callersMethodGetAllow
GetAllow returns allow methods defined on the node trie := New() trie.Parse("/").Handle("GET", handler1) trie.Parse("/").Handle("PUT", handler2) tri
tree.go:455
↓ 2 callersMethodHandler
Handler is an adapter which allows the usage of an http.Handler as a request handle.
mux.go:75
↓ 2 callersFunctionParam
Param return the router param based on the key
params.go:27
↓ 2 callersMethodPut
Put registers a new PUT route for a path with matching handler in the Mux.
mux.go:38
↓ 2 callersMethodServeHTTP
ServeHTTP implemented http.Handler interface
mux.go:82
↓ 1 callersMethodBuildURL
BuildURL will builds a URL for the pattern.
tree.go:334
↓ 1 callersMethodDefaultHandler
DefaultHandler registers a new handler in the Mux that will run if there is no other handler matching.
mux.go:59
↓ 1 callersMethodDelete
Delete registers a new DELETE route for a path with matching handler in the Mux.
mux.go:48
↓ 1 callersMethodGetName
GetName returns the name for the route, if any.
tree.go:318
↓ 1 callersMethodName
Name sets the name for the route, used to build URLs.
tree.go:305
↓ 1 callersMethodOptions
Options registers a new OPTIONS route for a path with matching handler in the Mux.
mux.go:53
↓ 1 callersMethodPatch
Patch registers a new PATCH route for a path with matching handler in the Mux.
mux.go:43
↓ 1 callersFunctionRequest
(method, url string)
bench_test.go:356
↓ 1 callersFunctionbuildPath
(segments []string, params map[string]string)
tree.go:356
↓ 1 callersMethodgetSegments
()
tree.go:270
↓ 1 callersFunctionmapToSlice
(m map[string]string)
tree_test.go:171
↓ 1 callersFunctionparsePattern
parsePattern support multi pattern
tree.go:460
↓ 1 callersFunctionparseSegment
segment support multi type ?:id :name :name(reg) :name:int :name:string *.* * cms_:id([0-9]+).html
tree.go:506
↓ 1 callersFunctionpathClean
(path string)
tree.go:658
FunctionBenchmarkBeegoMux
(b *testing.B)
bench_test.go:383
FunctionBenchmarkBeegoMuxRequests
(b *testing.B)
bench_test.go:395
FunctionBenchmarkHttpRouter
(b *testing.B)
bench_test.go:387
FunctionBenchmarkHttpRouterRequests
(b *testing.B)
bench_test.go:399
FunctionBenchmarkHttpTreeMux
(b *testing.B)
bench_test.go:391
FunctionBenchmarkHttpTreeMuxRequests
(b *testing.B)
bench_test.go:403
MethodHandle
Handle is used to mount a handler with a method name to the node. t := New() node := t.Define("/a/b") node.Handle("GET", handler1) node.Handle("POST"
tree.go:425
FunctionTestBuildURL
(t *testing.T)
tree_test.go:127
FunctionTestMux
(t *testing.T)
mux_test.go:21
FunctionTestRegexpSegment
(t *testing.T)
tree_test.go:8
FunctionTestRouters
(t *testing.T)
tree_test.go:96
FunctionTestUnmatched
(t *testing.T)
tree_test.go:148
Functioninit
()
bench_test.go:308