- Sort Score
- Result 10 results
- Languages All
Results 31 - 36 of 36 for StatusOK (0.42 sec)
-
src/net/http/fs.go
setLastModified(w, modtime) done, rangeReq := checkPreconditions(w, r, modtime) if done { return } code := StatusOK // If Content-Type isn't set, use the file's extension to find it, but // if the Content-Type is unset explicitly, do not sniff the type. ctypes, haveType := w.Header()["Content-Type"] var ctype string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 17:06:47 UTC 2024 - 31.1K bytes - Viewed (0) -
cmd/object-multipart-handlers.go
Event: "scanner:manyversions", APIName: "CompleteMultipartUpload", Bucket: objInfo.Bucket, Object: objInfo.Name, VersionID: objInfo.VersionID, Status: http.StatusText(http.StatusOK), }) } // Remove the transitioned object whose object version is being overwritten. if !globalTierConfigMgr.Empty() { // Schedule object for immediate transition if eligible.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Jun 14 13:28:35 UTC 2024 - 38.8K bytes - Viewed (0) -
pkg/kube/client.go
return nil, formatError(err) } resp, err := c.http.Do(req.WithContext(ctx)) if err != nil { return nil, formatError(err) } defer closeQuietly(resp.Body) if resp.StatusCode != http.StatusOK { return nil, fmt.Errorf("unexpected status code: %d", resp.StatusCode) } out, err := io.ReadAll(resp.Body) if err != nil { return nil, formatError(err) } return out, nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 25 14:44:17 UTC 2024 - 39K bytes - Viewed (0) -
src/net/http/request_test.go
t.Fatal(err) } req.Header.Set("Content-Type", mw.FormDataContentType()) res, err := cst.Client().Do(req) if err != nil { t.Fatal(err) } res.Body.Close() if g, w := res.StatusCode, StatusOK; g != w { t.Fatalf("Status code mismatch: got %d, want %d", g, w) } } func TestRequestRedirect(t *testing.T) { run(t, testRequestRedirect) } func testRequestRedirect(t *testing.T, mode testMode) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 18:42:34 UTC 2024 - 44K bytes - Viewed (0) -
pilot/pkg/bootstrap/server.go
for name, fn := range s.readinessProbes { if ready := fn(); !ready { log.Warnf("%s is not ready", name) w.WriteHeader(http.StatusServiceUnavailable) return } } w.WriteHeader(http.StatusOK) } // initServers initializes http and grpc servers func (s *Server) initServers(args *PilotArgs) { s.initGrpcServer(args.KeepaliveOptions) multiplexGRPC := false if args.ServerOptions.GRPCAddr != "" {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 17:48:28 UTC 2024 - 46.3K bytes - Viewed (0) -
src/net/http/clientserver_test.go
if got, want := string(gotBody), body; got != want { t.Errorf("got request body = %q; want %q", got, want) } w.Header().Set("Transfer-Encoding", "identity") w.WriteHeader(StatusOK) w.(Flusher).Flush() io.WriteString(w, body) })) req, _ := NewRequest("GET", cst.ts.URL, strings.NewReader(body)) res, err := cst.c.Do(req) if err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 46.6K bytes - Viewed (0)