Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 17 of 17 for StatusOK (0.21 sec)

  1. src/net/http/server.go

    	// their value to nil.
    	Header() Header
    
    	// Write writes the data to the connection as part of an HTTP reply.
    	//
    	// If [ResponseWriter.WriteHeader] has not yet been called, Write calls
    	// WriteHeader(http.StatusOK) before writing the data. If the Header
    	// does not contain a Content-Type line, Write adds a Content-Type set
    	// to the result of passing the initial 512 bytes of written data to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  2. cmd/batch-expire.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
    }
    
    // Expire expires object versions which have already matched supplied filter conditions
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 13:50:53 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  3. pilot/pkg/bootstrap/server_test.go

    	for _, url := range []string{"http://" + s.httpAddr, "https://" + s.httpsAddr} {
    		resp, err := c.Get(url + "/ready")
    		g.Expect(err).ToNot(HaveOccurred())
    		g.Expect(resp.StatusCode).To(Equal(http.StatusOK))
    		g.Expect(resp.Body.Close()).To(Succeed())
    	}
    }
    
    func TestInitOIDC(t *testing.T) {
    	tests := []struct {
    		name      string
    		expectErr bool
    		jwtRule   string
    	}{
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  4. src/net/http/serve_test.go

    	c := ts.Client()
    
    	res, err := c.Get(ts.URL)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer res.Body.Close()
    	if res.StatusCode != StatusOK {
    		t.Errorf("got res.StatusCode %d, want %v", res.StatusCode, StatusOK)
    	}
    }
    
    // https://golang.org/issues/22084
    func TestTimeoutHandlerPanicRecovery(t *testing.T) {
    	wrapper := func(h Handler) Handler {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
Back to top