- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for HandlerFunc (0.16 sec)
-
cni/pkg/plugin/plugin_test.go
c := http.DefaultClient eventC := CNIEventClient{ client: c, url: address + path, } return eventC } testServer := httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { cniAddServerCalled = true if serverErr { res.WriteHeader(http.StatusInternalServerError) res.Write([]byte("server not happy")) return }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed May 08 15:58:51 GMT 2024 - 17.5K bytes - Viewed (0)