Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for HandleFunc (0.11 sec)

  1. pkg/controller/endpoint/endpoints_controller_test.go

    	}
    
    	mux := http.NewServeMux()
    	mux.HandleFunc("/api/v1/namespaces/"+namespace+"/endpoints", handlerFunc)
    	mux.HandleFunc("/api/v1/namespaces/"+namespace+"/endpoints/", handlerFunc)
    	mux.HandleFunc("/api/v1/namespaces/"+namespace+"/events", func(res http.ResponseWriter, req *http.Request) {})
    	mux.HandleFunc("/", func(res http.ResponseWriter, req *http.Request) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 87.7K bytes
    - Viewed (0)
  2. src/net/http/fs_test.go

    	fd3 := os.NewFile(3, "ephemeral-port-listener")
    	ln, err := net.FileListener(fd3)
    	if err != nil {
    		panic(err)
    	}
    	mux := NewServeMux()
    	mux.Handle("/", FileServer(Dir(os.TempDir())))
    	mux.HandleFunc("/quit", func(ResponseWriter, *Request) {
    		os.Exit(0)
    	})
    	s := &Server{Handler: mux}
    	err = s.Serve(ln)
    	if err != nil {
    		panic(err)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
Back to top