SYMBOL INDEX (267 symbols across 16 files) FILE: bench_test.go function BenchmarkMux (line 13) | func BenchmarkMux(b *testing.B) { function BenchmarkMuxSimple (line 24) | func BenchmarkMuxSimple(b *testing.B) { function BenchmarkMuxAlternativeInRegexp (line 56) | func BenchmarkMuxAlternativeInRegexp(b *testing.B) { function BenchmarkManyPathVariables (line 69) | func BenchmarkManyPathVariables(b *testing.B) { FILE: example_authentication_middleware_test.go type authenticationMiddleware (line 11) | type authenticationMiddleware struct method Populate (line 16) | func (amw *authenticationMiddleware) Populate() { method Middleware (line 24) | func (amw *authenticationMiddleware) Middleware(next http.Handler) htt... function Example_authenticationMiddleware (line 38) | func Example_authenticationMiddleware() { FILE: example_cors_method_middleware_test.go function ExampleCORSMethodMiddleware (line 11) | func ExampleCORSMethodMiddleware() { FILE: example_route_test.go function ExampleRoute_HeadersRegexp (line 13) | func ExampleRoute_HeadersRegexp() { function ExampleRoute_HeadersRegexp_exactMatch (line 35) | func ExampleRoute_HeadersRegexp_exactMatch() { FILE: example_route_vars_test.go function ExampleRoute_GetVarNames (line 10) | func ExampleRoute_GetVarNames() { FILE: middleware.go type MiddlewareFunc (line 11) | type MiddlewareFunc method Middleware (line 19) | func (mw MiddlewareFunc) Middleware(handler http.Handler) http.Handler { type middleware (line 14) | type middleware interface method Use (line 24) | func (r *Router) Use(mwf ...MiddlewareFunc) { method useInterface (line 31) | func (r *Router) useInterface(mw middleware) { method Use (line 38) | func (r *Route) Use(mwf ...MiddlewareFunc) *Route { method useInterface (line 47) | func (r *Route) useInterface(mw middleware) { function CORSMethodMiddleware (line 55) | func CORSMethodMiddleware(r *Router) MiddlewareFunc { function getAllMethodsForRoute (line 74) | func getAllMethodsForRoute(r *Router, req *http.Request) ([]string, erro... FILE: middleware_test.go type testMiddleware (line 10) | type testMiddleware struct method Middleware (line 14) | func (tm *testMiddleware) Middleware(h http.Handler) http.Handler { function dummyHandler (line 21) | func dummyHandler(w http.ResponseWriter, r *http.Request) {} function TestMiddlewareAdd (line 23) | func TestMiddlewareAdd(t *testing.T) { function TestMiddleware (line 59) | func TestMiddleware(t *testing.T) { function TestMiddlewareSubrouter (line 120) | func TestMiddlewareSubrouter(t *testing.T) { function TestMiddlewareExecution (line 185) | func TestMiddlewareExecution(t *testing.T) { function TestMiddlewareNotFound (line 254) | func TestMiddlewareNotFound(t *testing.T) { function TestMiddlewareMethodMismatch (line 304) | func TestMiddlewareMethodMismatch(t *testing.T) { function TestMiddlewareNotFoundSubrouter (line 354) | func TestMiddlewareNotFoundSubrouter(t *testing.T) { function TestMiddlewareMethodMismatchSubrouter (line 412) | func TestMiddlewareMethodMismatchSubrouter(t *testing.T) { function TestCORSMethodMiddleware (line 470) | func TestCORSMethodMiddleware(t *testing.T) { function TestCORSMethodMiddlewareSubrouter (line 584) | func TestCORSMethodMiddlewareSubrouter(t *testing.T) { function TestMiddlewareOnMultiSubrouter (line 604) | func TestMiddlewareOnMultiSubrouter(t *testing.T) { FILE: mux.go function NewRouter (line 32) | func NewRouter() *Router { type Router (line 54) | type Router struct method Match (line 151) | func (r *Router) Match(req *http.Request, match *RouteMatch) bool { method ServeHTTP (line 188) | func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request) { method Get (line 232) | func (r *Router) Get(name string) *Route { method GetRoute (line 238) | func (r *Router) GetRoute(name string) *Route { method StrictSlash (line 261) | func (r *Router) StrictSlash(value bool) *Router { method SkipClean (line 274) | func (r *Router) SkipClean(value bool) *Router { method OmitRouteFromContext (line 284) | func (r *Router) OmitRouteFromContext(value bool) *Router { method OmitRouterFromContext (line 293) | func (r *Router) OmitRouterFromContext(value bool) *Router { method UseEncodedPath (line 304) | func (r *Router) UseEncodedPath() *Router { method NewRoute (line 314) | func (r *Router) NewRoute() *Route { method Name (line 323) | func (r *Router) Name(name string) *Route { method Handle (line 329) | func (r *Router) Handle(path string, handler http.Handler) *Route { method HandleFunc (line 335) | func (r *Router) HandleFunc(path string, f func(http.ResponseWriter, method Headers (line 342) | func (r *Router) Headers(pairs ...string) *Route { method Host (line 348) | func (r *Router) Host(tpl string) *Route { method MatcherFunc (line 354) | func (r *Router) MatcherFunc(f MatcherFunc) *Route { method Methods (line 360) | func (r *Router) Methods(methods ...string) *Route { method Path (line 366) | func (r *Router) Path(tpl string) *Route { method PathPrefix (line 372) | func (r *Router) PathPrefix(tpl string) *Route { method Queries (line 378) | func (r *Router) Queries(pairs ...string) *Route { method Schemes (line 384) | func (r *Router) Schemes(schemes ...string) *Route { method BuildVarsFunc (line 390) | func (r *Router) BuildVarsFunc(f BuildVarsFunc) *Route { method Walk (line 397) | func (r *Router) Walk(walkFn WalkFunc) error { method walk (line 410) | func (r *Router) walk(walkFn WalkFunc, ancestors []*Route) error { type routeConf (line 82) | type routeConf struct function copyRouteConf (line 113) | func copyRouteConf(r routeConf) routeConf { function copyRouteRegexp (line 135) | func copyRouteRegexp(r *routeRegexp) *routeRegexp { type WalkFunc (line 408) | type WalkFunc type RouteMatch (line 446) | type RouteMatch struct type contextKey (line 457) | type contextKey constant varsKey (line 460) | varsKey contextKey = iota constant routeKey (line 461) | routeKey constant routerKey (line 462) | routerKey function Vars (line 466) | func Vars(r *http.Request) map[string]string { function CurrentRoute (line 477) | func CurrentRoute(r *http.Request) *Route { function CurrentRouter (line 484) | func CurrentRouter(r *http.Request) *Router { function requestWithVars (line 493) | func requestWithVars(r *http.Request, vars map[string]string) *http.Requ... function requestWithRouteAndVars (line 505) | func requestWithRouteAndVars(r *http.Request, route *Route, vars map[str... function requestWithRouter (line 513) | func requestWithRouter(r *http.Request, router *Router) *http.Request { function cleanPath (line 524) | func cleanPath(p string) string { function replaceURLPath (line 542) | func replaceURLPath(u *url.URL, p string) string { function uniqueVars (line 550) | func uniqueVars(s1, s2 []string) error { function checkPairs (line 563) | func checkPairs(pairs ...string) (int, error) { function mapFromPairsToString (line 574) | func mapFromPairsToString(pairs ...string) (map[string]string, error) { function mapFromPairsToRegex (line 588) | func mapFromPairsToRegex(pairs ...string) (map[string]*regexp.Regexp, er... function matchInArray (line 605) | func matchInArray(arr []string, value string) bool { function matchMapWithString (line 615) | func matchMapWithString(toCheck map[string]string, toMatch map[string][]... function matchMapWithRegex (line 643) | func matchMapWithRegex(toCheck map[string]*regexp.Regexp, toMatch map[st... function methodNotAllowed (line 670) | func methodNotAllowed(w http.ResponseWriter, r *http.Request) { function methodNotAllowedHandler (line 676) | func methodNotAllowedHandler() http.Handler { return http.HandlerFunc(me... FILE: mux_httpserver_test.go function TestSchemeMatchers (line 14) | func TestSchemeMatchers(t *testing.T) { FILE: mux_test.go method GoString (line 24) | func (r *Route) GoString() string { method GoString (line 32) | func (r *routeRegexp) GoString() string { type routeTest (line 36) | type routeTest struct function TestHost (line 55) | func TestHost(t *testing.T) { function TestPath (line 229) | func TestPath(t *testing.T) { function TestPathPrefix (line 465) | func TestPathPrefix(t *testing.T) { function TestSchemeHostPath (line 545) | func TestSchemeHostPath(t *testing.T) { function TestHeaders (line 654) | func TestHeaders(t *testing.T) { function TestMethods (line 714) | func TestMethods(t *testing.T) { function TestQueries (line 767) | func TestQueries(t *testing.T) { function TestSchemes (line 1077) | func TestSchemes(t *testing.T) { function TestMatcherFunc (line 1129) | func TestMatcherFunc(t *testing.T) { function TestBuildVarsFunc (line 1163) | func TestBuildVarsFunc(t *testing.T) { function TestSubRouter (line 1201) | func TestSubRouter(t *testing.T) { function TestNamedRoutes (line 1434) | func TestNamedRoutes(t *testing.T) { function TestNameMultipleCalls (line 1458) | func TestNameMultipleCalls(t *testing.T) { function TestStrictSlash (line 1467) | func TestStrictSlash(t *testing.T) { function TestUseEncodedPath (line 1543) | func TestUseEncodedPath(t *testing.T) { function TestWalkSingleDepth (line 1578) | func TestWalkSingleDepth(t *testing.T) { function TestWalkNested (line 1623) | func TestWalkNested(t *testing.T) { function TestWalkSubrouters (line 1673) | func TestWalkSubrouters(t *testing.T) { function TestWalkErrorRoute (line 1701) | func TestWalkErrorRoute(t *testing.T) { function TestWalkErrorMatcher (line 1713) | func TestWalkErrorMatcher(t *testing.T) { function TestWalkErrorHandler (line 1724) | func TestWalkErrorHandler(t *testing.T) { function TestSubrouterErrorHandling (line 1737) | func TestSubrouterErrorHandling(t *testing.T) { function TestPanicOnCapturingGroups (line 1762) | func TestPanicOnCapturingGroups(t *testing.T) { function TestRouterInContext (line 1771) | func TestRouterInContext(t *testing.T) { function getRouteTemplate (line 1842) | func getRouteTemplate(route *Route) string { function testRoute (line 1854) | func testRoute(t *testing.T, test routeTest) { function testUseEscapedRoute (line 1951) | func testUseEscapedRoute(t *testing.T, test routeTest) { function testTemplate (line 1956) | func testTemplate(t *testing.T, test routeTest) { function testMethods (line 1978) | func testMethods(t *testing.T, test routeTest) { function testRegexp (line 1986) | func testRegexp(t *testing.T, test routeTest) { function testQueriesRegexp (line 1994) | func testQueriesRegexp(t *testing.T, test routeTest) { function testQueriesTemplates (line 2003) | func testQueriesTemplates(t *testing.T, test routeTest) { type TestA301ResponseWriter (line 2012) | type TestA301ResponseWriter struct method Header (line 2017) | func (ho *TestA301ResponseWriter) Header() http.Header { method Write (line 2021) | func (ho *TestA301ResponseWriter) Write(b []byte) (int, error) { method WriteHeader (line 2025) | func (ho *TestA301ResponseWriter) WriteHeader(code int) { function Test301Redirect (line 2029) | func Test301Redirect(t *testing.T) { function TestSkipClean (line 2052) | func TestSkipClean(t *testing.T) { function TestSubrouterHeader (line 2071) | func TestSubrouterHeader(t *testing.T) { function TestNoMatchMethodErrorHandler (line 2100) | func TestNoMatchMethodErrorHandler(t *testing.T) { function TestMultipleDefinitionOfSamePathWithDifferentMethods (line 2139) | func TestMultipleDefinitionOfSamePathWithDifferentMethods(t *testing.T) { function TestMultipleDefinitionOfSamePathWithDifferentQueries (line 2186) | func TestMultipleDefinitionOfSamePathWithDifferentQueries(t *testing.T) { function TestErrMatchNotFound (line 2204) | func TestErrMatchNotFound(t *testing.T) { type methodsSubrouterTest (line 2257) | type methodsSubrouterTest struct function methodHandler (line 2270) | func methodHandler(method string) http.HandlerFunc { function TestMethodsSubrouterCatchall (line 2281) | func TestMethodsSubrouterCatchall(t *testing.T) { function TestMethodsSubrouterStrictSlash (line 2330) | func TestMethodsSubrouterStrictSlash(t *testing.T) { function TestMethodsSubrouterPathPrefix (line 2388) | func TestMethodsSubrouterPathPrefix(t *testing.T) { function TestMethodsSubrouterSubrouter (line 2437) | func TestMethodsSubrouterSubrouter(t *testing.T) { function TestMethodsSubrouterPathVariable (line 2495) | func TestMethodsSubrouterPathVariable(t *testing.T) { function ExampleSetURLVars (line 2549) | func ExampleSetURLVars() { function testMethodsSubrouter (line 2559) | func testMethodsSubrouter(t *testing.T, test methodsSubrouterTest) { function TestSubrouterMatching (line 2589) | func TestSubrouterMatching(t *testing.T) { function Test_copyRouteConf (line 2778) | func Test_copyRouteConf(t *testing.T) { function TestMethodNotAllowed (line 2856) | func TestMethodNotAllowed(t *testing.T) { function TestMethodNotAllowedSubrouterWithSeveralRoutes (line 2872) | func TestMethodNotAllowedSubrouterWithSeveralRoutes(t *testing.T) { type customMethodNotAllowedHandler (line 2889) | type customMethodNotAllowedHandler struct method ServeHTTP (line 2893) | func (h customMethodNotAllowedHandler) ServeHTTP(w http.ResponseWriter... function TestSubrouterCustomMethodNotAllowed (line 2898) | func TestSubrouterCustomMethodNotAllowed(t *testing.T) { function TestSubrouterNotFound (line 2946) | func TestSubrouterNotFound(t *testing.T) { function TestContextMiddleware (line 2962) | func TestContextMiddleware(t *testing.T) { function TestGetVarNames (line 2984) | func TestGetVarNames(t *testing.T) { function getPopulateContextTestCases (line 3018) | func getPopulateContextTestCases() []struct { function TestPopulateContext (line 3069) | func TestPopulateContext(t *testing.T) { function BenchmarkPopulateContext (line 3113) | func BenchmarkPopulateContext(b *testing.B) { function mapToPairs (line 3141) | func mapToPairs(m map[string]string) []string { function stringMapEqual (line 3153) | func stringMapEqual(m1, m2 map[string]string) bool { function stringHandler (line 3169) | func stringHandler(s string) http.HandlerFunc { function newRequest (line 3182) | func newRequest(method, url string) *http.Request { function newRequestWithHeaders (line 3222) | func newRequestWithHeaders(method, url string, headers ...string) *http.... function newRequestHost (line 3237) | func newRequestHost(method, url, host string) *http.Request { FILE: old_test.go type ResponseRecorder (line 24) | type ResponseRecorder struct method Header (line 40) | func (rw *ResponseRecorder) Header() http.Header { method Write (line 45) | func (rw *ResponseRecorder) Write(buf []byte) (int, error) { method WriteHeader (line 56) | func (rw *ResponseRecorder) WriteHeader(code int) { method Flush (line 61) | func (rw *ResponseRecorder) Flush() { function NewRecorder (line 32) | func NewRecorder() *ResponseRecorder { function TestRouteMatchers (line 67) | func TestRouteMatchers(t *testing.T) { type headerMatcherTest (line 225) | type headerMatcherTest struct type hostMatcherTest (line 249) | type hostMatcherTest struct type methodMatcherTest (line 283) | type methodMatcherTest struct type pathMatcherTest (line 312) | type pathMatcherTest struct type schemeMatcherTest (line 334) | type schemeMatcherTest struct type urlBuildingTest (line 363) | type urlBuildingTest struct function TestHeaderMatcher (line 412) | func TestHeaderMatcher(t *testing.T) { function TestHostMatcher (line 430) | func TestHostMatcher(t *testing.T) { function TestMethodMatcher (line 464) | func TestMethodMatcher(t *testing.T) { function TestPathMatcher (line 479) | func TestPathMatcher(t *testing.T) { function TestSchemeMatcher (line 509) | func TestSchemeMatcher(t *testing.T) { function TestUrlBuilding (line 524) | func TestUrlBuilding(t *testing.T) { function TestMatchedRouteName (line 547) | func TestMatchedRouteName(t *testing.T) { function TestSubRouting (line 567) | func TestSubRouting(t *testing.T) { function TestVariableNames (line 590) | func TestVariableNames(t *testing.T) { function TestRedirectSlash (line 597) | func TestRedirectSlash(t *testing.T) { function TestNewRegexp (line 654) | func TestNewRegexp(t *testing.T) { FILE: regexp.go type routeRegexpOptions (line 17) | type routeRegexpOptions struct type regexpType (line 22) | type regexpType constant regexpTypePath (line 25) | regexpTypePath regexpType = iota constant regexpTypeHost (line 26) | regexpTypeHost constant regexpTypePrefix (line 27) | regexpTypePrefix constant regexpTypeQuery (line 28) | regexpTypeQuery function newRouteRegexp (line 41) | func newRouteRegexp(tpl string, typ regexpType, options routeRegexpOptio... type routeRegexp (line 169) | type routeRegexp struct method Match (line 189) | func (r *routeRegexp) Match(req *http.Request, match *RouteMatch) bool { method url (line 212) | func (r *routeRegexp) url(values map[string]string) (string, error) { method getURLQuery (line 243) | func (r *routeRegexp) getURLQuery(req *http.Request) string { method matchQueryString (line 293) | func (r *routeRegexp) matchQueryString(req *http.Request) bool { function findFirstQueryKey (line 257) | func findFirstQueryKey(rawQuery, key string) (value string, ok bool) { function braceIndices (line 299) | func braceIndices(s string) ([]int, error) { function varGroupName (line 323) | func varGroupName(idx int) string { type routeRegexpGroup (line 332) | type routeRegexpGroup struct method setMatch (line 339) | func (v routeRegexpGroup) setMatch(req *http.Request, m *RouteMatch, r... function getHost (line 399) | func getHost(r *http.Request) string { function extractVars (line 406) | func extractVars(input string, matches []int, names []string, output map... FILE: regexp_test.go function Test_newRouteRegexp_Errors (line 11) | func Test_newRouteRegexp_Errors(t *testing.T) { function Test_findFirstQueryKey (line 36) | func Test_findFirstQueryKey(t *testing.T) { function Benchmark_findQueryKey (line 68) | func Benchmark_findQueryKey(b *testing.B) { function Benchmark_findQueryKeyGoLib (line 91) | func Benchmark_findQueryKeyGoLib(b *testing.B) { FILE: route.go type Route (line 17) | type Route struct method SkipClean (line 42) | func (r *Route) SkipClean() bool { method Match (line 47) | func (r *Route) Match(req *http.Request, match *RouteMatch) bool { method GetError (line 121) | func (r *Route) GetError() error { method BuildOnly (line 126) | func (r *Route) BuildOnly() *Route { method Metadata (line 134) | func (r *Route) Metadata(key any, value any) *Route { method GetMetadata (line 144) | func (r *Route) GetMetadata() map[any]any { method MetadataContains (line 149) | func (r *Route) MetadataContains(key any) bool { method GetMetadataValue (line 155) | func (r *Route) GetMetadataValue(key any) (any, error) { method GetMetadataValueOr (line 165) | func (r *Route) GetMetadataValueOr(key any, fallbackValue any) any { method Handler (line 177) | func (r *Route) Handler(handler http.Handler) *Route { method HandlerFunc (line 185) | func (r *Route) HandlerFunc(f func(http.ResponseWriter, *http.Request)... method GetHandler (line 190) | func (r *Route) GetHandler() http.Handler { method GetHandlerWithMiddlewares (line 196) | func (r *Route) GetHandlerWithMiddlewares() http.Handler { method Name (line 212) | func (r *Route) Name(name string) *Route { method GetName (line 225) | func (r *Route) GetName() string { method addMatcher (line 239) | func (r *Route) addMatcher(m matcher) *Route { method addRegexpMatcher (line 247) | func (r *Route) addRegexpMatcher(tpl string, typ regexpType) error { method Headers (line 312) | func (r *Route) Headers(pairs ...string) *Route { method HeadersRegexp (line 338) | func (r *Route) HeadersRegexp(pairs ...string) *Route { method Host (line 366) | func (r *Route) Host(tpl string) *Route { method MatcherFunc (line 382) | func (r *Route) MatcherFunc(f MatcherFunc) *Route { method Methods (line 398) | func (r *Route) Methods(methods ...string) *Route { method Path (line 426) | func (r *Route) Path(tpl string) *Route { method PathPrefix (line 442) | func (r *Route) PathPrefix(tpl string) *Route { method Queries (line 466) | func (r *Route) Queries(pairs ...string) *Route { method Schemes (line 512) | func (r *Route) Schemes(schemes ...string) *Route { method BuildVarsFunc (line 530) | func (r *Route) BuildVarsFunc(f BuildVarsFunc) *Route { method Subrouter (line 557) | func (r *Route) Subrouter() *Router { method URL (line 606) | func (r *Route) URL(pairs ...string) (*url.URL, error) { method URLHost (line 648) | func (r *Route) URLHost(pairs ...string) (*url.URL, error) { method URLPath (line 676) | func (r *Route) URLPath(pairs ...string) (*url.URL, error) { method GetPathTemplate (line 701) | func (r *Route) GetPathTemplate() (string, error) { method GetPathRegexp (line 715) | func (r *Route) GetPathRegexp() (string, error) { method GetQueriesRegexp (line 730) | func (r *Route) GetQueriesRegexp() ([]string, error) { method GetQueriesTemplates (line 749) | func (r *Route) GetQueriesTemplates() ([]string, error) { method GetMethods (line 767) | func (r *Route) GetMethods() ([]string, error) { method GetHostTemplate (line 784) | func (r *Route) GetHostTemplate() (string, error) { method GetVarNames (line 796) | func (r *Route) GetVarNames() ([]string, error) { method prepareVars (line 815) | func (r *Route) prepareVars(pairs ...string) (map[string]string, error) { method buildVars (line 823) | func (r *Route) buildVars(m map[string]string) map[string]string { type matcher (line 234) | type matcher interface type headerMatcher (line 297) | type headerMatcher method Match (line 299) | func (m headerMatcher) Match(r *http.Request, match *RouteMatch) bool { type headerRegexMatcher (line 322) | type headerRegexMatcher method Match (line 324) | func (m headerRegexMatcher) Match(r *http.Request, match *RouteMatch) ... type MatcherFunc (line 374) | type MatcherFunc method Match (line 377) | func (m MatcherFunc) Match(r *http.Request, match *RouteMatch) bool { type methodMatcher (line 389) | type methodMatcher method Match (line 391) | func (m methodMatcher) Match(r *http.Request, match *RouteMatch) bool { type schemeMatcher (line 485) | type schemeMatcher method Match (line 487) | func (m schemeMatcher) Match(r *http.Request, match *RouteMatch) bool { type BuildVarsFunc (line 526) | type BuildVarsFunc FILE: route_test.go function BenchmarkNewRouter (line 15) | func BenchmarkNewRouter(b *testing.B) { function BenchmarkNewRouterRegexpFunc (line 30) | func BenchmarkNewRouterRegexpFunc(b *testing.B) { function testNewRouter (line 62) | func testNewRouter(_ testing.TB, handler http.Handler) { function TestRouteMetadata (line 70) | func TestRouteMetadata(t *testing.T) { FILE: test_helpers.go function SetURLVars (line 17) | func SetURLVars(r *http.Request, val map[string]string) *http.Request {