- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 123 for StatusOK (0.2 sec)
-
cni/pkg/plugin/cnieventclient_test.go
// 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() }() cniC := fakeCNIEventClient(testServer.URL)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 4.2K bytes - Viewed (0) -
src/log/slog/example_test.go
return slog.Attr{} } return a }, }), ) logger.Info("finished", slog.Group("req", slog.String("method", r.Method), slog.String("url", r.URL.String())), slog.Int("status", http.StatusOK), slog.Duration("duration", time.Second)) // Output: // level=INFO msg=finished req.method=GET req.url=localhost status=200 duration=1s
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 14:56:30 UTC 2023 - 857 bytes - Viewed (0) -
cmd/crossdomain-xml-handler_test.go
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Jul 08 14:31:42 UTC 2023 - 1.3K bytes - Viewed (0) -
src/database/sql/example_service_test.go
defer cancel() err := s.db.PingContext(ctx) if err != nil { http.Error(w, fmt.Sprintf("db down: %v", err), http.StatusFailedDependency) return } w.WriteHeader(http.StatusOK) return case "/quick-action": // This is a short SELECT. Use the request context as the base of // the context timeout. ctx, cancel := context.WithTimeout(r.Context(), 3*time.Second) defer cancel()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 28 20:21:26 UTC 2024 - 4K bytes - Viewed (0) -
cmd/object-lambda-handlers.go
"Switching Protocols": http.StatusSwitchingProtocols, "Processing": http.StatusProcessing, "Early Hints": http.StatusEarlyHints, "OK": http.StatusOK, "Created": http.StatusCreated, "Accepted": http.StatusAccepted, "Non-Authoritative Information": http.StatusNonAuthoritativeInfo,
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 10.2K bytes - Viewed (0) -
src/os/exec.go
// reference was not dropped or status changed. func (p *Process) handlePersistentRelease(reason processStatus) processStatus { if p.mode != modeHandle { panic("handlePersistentRelease called in invalid mode") } for { refs := p.state.Load() status := processStatus(refs & processStatusMask) if status != statusOK {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 12.8K bytes - Viewed (0) -
tests/integration/pilot/common/routing.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 08 21:52:51 UTC 2024 - 135.9K bytes - Viewed (0) -
src/cmd/go/internal/web/http.go
fileErr: err, }, nil } if err != nil { return nil, err } return &Response{ URL: u.Redacted(), Status: http.StatusText(http.StatusOK), StatusCode: http.StatusOK, Body: f, }, nil } func openBrowser(url string) bool { return browser.Open(url) } func isLocalHost(u *urlpkg.URL) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 10 17:34:27 UTC 2023 - 9.7K bytes - Viewed (0) -
pkg/http/get.go
} for k, v := range headers { req.Header.Set(k, v) } response, err := httpClient.Do(req) if err != nil { return nil, err } defer response.Body.Close() if response.StatusCode != http.StatusOK { return nil, fmt.Errorf("unexpected status %d", response.StatusCode) } var b bytes.Buffer if _, err := io.Copy(&b, response.Body); err != nil { return nil, err } return &b, nil
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Aug 09 03:52:10 UTC 2023 - 1.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/config_test.go
`, t) checkPath(server.URL+"/healthz/poststarthook/delegate-post-start-hook", http.StatusOK, `ok`, t) checkPath(server.URL+"/healthz/poststarthook/wrapping-post-start-hook", http.StatusOK, `ok`, t) checkPath(server.URL+"/foo", http.StatusForbidden, ``, t) checkPath(server.URL+"/bar", http.StatusUnauthorized, ``, t) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 18:59:21 UTC 2024 - 13.1K bytes - Viewed (0)