- Sort Score
- Result 10 results
- Languages All
Results 11 - 13 of 13 for StatusOK (0.18 sec)
-
src/net/http/client_test.go
} }) } } type nilBodyRoundTripper struct{} func (nilBodyRoundTripper) RoundTrip(req *Request) (*Response, error) { return &Response{ StatusCode: StatusOK, Status: StatusText(StatusOK), Body: nil, Request: req, }, nil } func TestClientPopulatesNilResponseBody(t *testing.T) { c := &Client{Transport: nilBodyRoundTripper{}}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:30:50 UTC 2024 - 63.8K bytes - Viewed (0) -
pkg/controller/endpoint/endpoints_controller_test.go
} store.Add(p) } } func makeTestServer(t *testing.T, namespace string) (*httptest.Server, *utiltesting.FakeHandler) { fakeEndpointsHandler := utiltesting.FakeHandler{ StatusCode: http.StatusOK, ResponseBody: runtime.EncodeOrDie(clientscheme.Codecs.LegacyCodec(v1.SchemeGroupVersion), &v1.Endpoints{}), } mux := http.NewServeMux() if namespace == "" { t.Fatal("namespace cannot be empty") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 06:51:56 UTC 2024 - 87.7K bytes - Viewed (0) -
cmd/batch-handlers.go
clnt := http.Client{Transport: getRemoteInstanceTransport()} resp, err := clnt.Do(req) if err != nil { return err } xhttp.DrainBody(resp.Body) if resp.StatusCode != http.StatusOK { return errors.New(resp.Status) } return nil } // Notify notifies notification endpoint if configured regarding job failure or success.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Jun 11 03:13:30 UTC 2024 - 56K bytes - Viewed (0)