- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 48 for HandleFunc (0.12 sec)
-
staging/src/k8s.io/apiserver/pkg/server/routes/debugsocket.go
func (s *DebugSocket) InstallProfiling() { s.mux.HandleFunc("/debug/pprof", redirectTo("/debug/pprof/")) s.mux.HandleFunc("/debug/pprof/", pprof.Index) s.mux.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline) s.mux.HandleFunc("/debug/pprof/profile", pprof.Profile) s.mux.HandleFunc("/debug/pprof/symbol", pprof.Symbol) s.mux.HandleFunc("/debug/pprof/trace", pprof.Trace) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Dec 08 00:33:16 UTC 2022 - 2.2K bytes - Viewed (0) -
src/net/http/server_test.go
} mux := NewServeMux() mux.HandleFunc("/", fn) mux.HandleFunc("/index", fn) mux.HandleFunc("/home", fn) mux.HandleFunc("/about", fn) mux.HandleFunc("/contact", fn) mux.HandleFunc("/robots.txt", fn) mux.HandleFunc("/products/", fn) mux.HandleFunc("/products/1", fn) mux.HandleFunc("/products/2", fn) mux.HandleFunc("/products/3", fn) mux.HandleFunc("/products/3/image.jpg", fn)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 13 13:54:22 UTC 2024 - 7.3K bytes - Viewed (0) -
samples/health-check/server.go
package main import ( "net/http" ) func main() { finish := make(chan bool) server8001 := http.NewServeMux() server8001.HandleFunc("/foo", foo8001) server8001.HandleFunc("/bar", bar8001) server8002 := http.NewServeMux() server8002.HandleFunc("/foo", foo8002) server8002.HandleFunc("/bar", bar8002) go func() { http.ListenAndServe(":8001", server8001) }() go func() {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 29 20:42:01 UTC 2020 - 1.4K bytes - Viewed (0) -
src/net/http/example_test.go
io.WriteString(w, "Hello, world!\n") } http.HandleFunc("/hello", helloHandler) log.Fatal(http.ListenAndServe(":8080", nil)) } func ExampleHandleFunc() { h1 := func(w http.ResponseWriter, _ *http.Request) { io.WriteString(w, "Hello from a HandleFunc #1!\n") } h2 := func(w http.ResponseWriter, _ *http.Request) { io.WriteString(w, "Hello from a HandleFunc #2!\n") } http.HandleFunc("/", h1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 19 16:12:45 UTC 2021 - 5.4K bytes - Viewed (0) -
src/cmd/trace/main.go
mux.HandleFunc("/regionblock", traceviewer.SVGProfileHandlerFunc(pprofByRegion(computePprofBlock(), parsed))) mux.HandleFunc("/regionsyscall", traceviewer.SVGProfileHandlerFunc(pprofByRegion(computePprofSyscall(), parsed))) mux.HandleFunc("/regionsched", traceviewer.SVGProfileHandlerFunc(pprofByRegion(computePprofSched(), parsed))) // Region endpoints. mux.HandleFunc("/userregions", UserRegionsHandlerFunc(parsed))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 10.4K bytes - Viewed (0) -
pkg/test/fakes/gce_metadata_server/main.go
r := mux.NewRouter() r.Use(checkMetadataHeaders) r.HandleFunc(projIDPath, func(w http.ResponseWriter, r *http.Request) { fmt.Fprint(w, projID) }).Methods("GET") r.HandleFunc(projNumberPath, func(w http.ResponseWriter, r *http.Request) { fmt.Fprint(w, projNumber) }).Methods("GET") r.HandleFunc(instIDPath, func(w http.ResponseWriter, r *http.Request) { fmt.Fprint(w, instID) }).Methods("GET")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Dec 04 22:47:52 UTC 2023 - 3.8K bytes - Viewed (0) -
cni/pkg/nodeagent/healthServer.go
installReady = &atomic.Value{} watchReady = &atomic.Value{} installReady.Store(false) watchReady.Store(false) router.HandleFunc(constants.LivenessEndpoint, healthz) router.HandleFunc(constants.ReadinessEndpoint, readyz(installReady, watchReady)) return } func healthz(w http.ResponseWriter, _ *http.Request) { w.WriteHeader(http.StatusOK) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 15 01:29:35 UTC 2024 - 1.8K bytes - Viewed (0) -
pkg/ctrlz/ctrlz.go
registerTopic(router, mainLayout, t) } if o.EnablePprof && o.Address == "localhost" { router.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline) router.HandleFunc("/debug/pprof/profile", pprof.Profile) router.HandleFunc("/debug/pprof/symbol", pprof.Symbol) router.HandleFunc("/debug/pprof/trace", pprof.Trace) router.PathPrefix("/debug/pprof/").HandlerFunc(pprof.Index) } registerHome(router, mainLayout)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 11 21:22:53 UTC 2024 - 5.9K bytes - Viewed (0) -
src/net/http/triv.go
if *webroot != "" { http.Handle("/go/", http.StripPrefix("/go/", http.FileServer(http.Dir(*webroot)))) } http.Handle("/chan", ChanCreate()) http.HandleFunc("/flags", FlagServer) http.HandleFunc("/args", ArgServer) http.HandleFunc("/go/hello", HelloServer) http.HandleFunc("/date", DateServer) log.Fatal(http.ListenAndServe("localhost:12345", nil))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 3.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/mux/pathrecorder_test.go
"testing" "github.com/stretchr/testify/assert" ) func TestSecretHandlers(t *testing.T) { c := NewPathRecorderMux("test") c.UnlistedHandleFunc("/secret", func(http.ResponseWriter, *http.Request) {}) c.HandleFunc("/nonswagger", func(http.ResponseWriter, *http.Request) {}) assert.NotContains(t, c.ListedPaths(), "/secret") assert.Contains(t, c.ListedPaths(), "/nonswagger") } func TestUnregisterHandlers(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 26 16:15:13 UTC 2017 - 4.4K bytes - Viewed (0)