- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 360 for resps (0.12 sec)
-
staging/src/k8s.io/apiserver/pkg/server/routes/version.go
Writes(version.Info{})) c.Add(versionWS) } // handleVersion writes the server's version information. func (v Version) handleVersion(req *restful.Request, resp *restful.Response) { responsewriters.WriteRawJSON(http.StatusOK, *v.Version, resp.ResponseWriter)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 09 18:11:41 UTC 2022 - 1.6K bytes - Viewed (0) -
pkg/proxy/healthcheck/healthcheck_test.go
req, err := http.NewRequest("GET", "/healthz", nil) if err != nil { t.Fatal(err) } resp := httptest.NewRecorder() handler.ServeHTTP(resp, req) if resp.Code != status { t.Errorf("expected status code %v, got %v", status, resp.Code) } var payload hcPayload if err := json.Unmarshal(resp.Body.Bytes(), &payload); err != nil { t.Fatal(err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 26 13:27:41 UTC 2024 - 21.4K bytes - Viewed (0) -
pkg/ctrlz/ctrlz_test.go
defer server.Close() reloadURL := fmt.Sprintf("http://%v/signalj/SIGUSR1", server.Address()) resp, err := http.DefaultClient.Post(reloadURL, "text/plain", nil) if err != nil { t.Fatalf("Run: %v", err) } if resp.StatusCode != http.StatusAccepted { t.Fatalf("Got unexpected status code: %v", resp.StatusCode) } select { case <-c: case <-time.After(5 * time.Second):
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 15 18:23:41 UTC 2024 - 2K bytes - Viewed (0) -
cni/pkg/plugin/cnieventclient_test.go
IP: fakeIP, }, Gateway: fakeGW, } ) func TestPushCNIAddEventSucceed(t *testing.T) { // Fake out a test HTTP server and use that instead of a real HTTP server over gRPC to validate req/resp flows testServer := httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { res.WriteHeader(http.StatusOK) res.Write([]byte("server happy")) })) defer func() { testServer.Close() }()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 4.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/filters/metrics.go
} func recordAuthenticationMetrics(ctx context.Context, resp *authenticator.Response, ok bool, err error, apiAudiences authenticator.Audiences, authStart time.Time, authFinish time.Time) { var resultLabel string switch { case err != nil || (resp != nil && !audiencesAreAcceptable(apiAudiences, resp.Audiences)): resultLabel = errorLabel case !ok: resultLabel = failureLabel default:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 20 13:35:55 UTC 2023 - 5.3K bytes - Viewed (0) -
pkg/bootstrap/platform/aws.go
url := awsMetadataIPv4URL + "/" + path if ipv6 { url = awsMetadataIPv6URL + "/" + path } resp, err := http.GET(url, time.Millisecond*100, headers) if err != nil { log.Debugf("error in getting aws info for %s : %v", path, err) return "", err } return resp.String(), nil } // getRegion returns the Region that the instance is running in.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Aug 09 03:52:10 UTC 2023 - 4.3K bytes - Viewed (0) -
src/net/http/response_test.go
func TestReadResponse(t *testing.T) { for i, tt := range respTests { resp, err := ReadResponse(bufio.NewReader(strings.NewReader(tt.Raw)), tt.Resp.Request) if err != nil { t.Errorf("#%d: %v", i, err) continue } rbody := resp.Body resp.Body = nil diff(t, fmt.Sprintf("#%d Response", i), resp, &tt.Resp) var bout strings.Builder if rbody != nil { _, err = io.Copy(&bout, rbody)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 19:01:29 UTC 2024 - 23.6K bytes - Viewed (0) -
pkg/kubelet/cm/devicemanager/pod_devices.go
for _, devices := range resources { resp := devices.allocResp // Each Allocate response has the following artifacts. // Environment variables // Mount points // Device files // Container annotations // CDI device IDs // These artifacts are per resource per container. // Updates RunContainerOptions.Envs. for k, v := range resp.Envs { if e, ok := envsMap[k]; ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jan 27 02:10:25 UTC 2024 - 16.7K bytes - Viewed (0) -
security/pkg/nodeagent/sds/sdsservice_test.go
return cmb.GetPrivateKey().GetInlineBytes() } func (s *TestServer) Verify(resp *discovery.DiscoveryResponse, expectations ...Expectation) *discovery.DiscoveryResponse { s.t.Helper() if len(resp.Resources) != len(expectations) { s.t.Fatalf("expected %d resources, got %d", len(expectations), len(resp.Resources)) } got := xdstest.ExtractTLSSecrets(s.t, resp.Resources) for _, e := range expectations { scrt := got[e.ResourceName]
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jan 17 20:12:58 UTC 2024 - 11.6K bytes - Viewed (0) -
src/net/rpc/server.go
server.respLock.Lock() resp := server.freeResp if resp == nil { resp = new(Response) } else { server.freeResp = resp.next *resp = Response{} } server.respLock.Unlock() return resp } func (server *Server) freeResponse(resp *Response) { server.respLock.Lock() resp.next = server.freeResp server.freeResp = resp server.respLock.Unlock() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 21.6K bytes - Viewed (0)