Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 182 for StatusOK (0.15 sec)

  1. cmd/object-handlers_test.go

    	// Call the ServeHTTP to executes the registered handler.
    	apiRouter.ServeHTTP(rec, req)
    	// Assert the response code with the expected status.
    	if rec.Code != http.StatusOK {
    		t.Fatalf("%s:  Expected the response status to be `%d`, but instead found `%d`", instanceType, http.StatusOK, rec.Code)
    	}
    
    	// decode the response body.
    	decoder := xml.NewDecoder(rec.Body)
    	multipartResponse := &InitiateMultipartUploadResponse{}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 161.9K bytes
    - Viewed (0)
  2. 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)
  3. istioctl/pkg/cli/mock_test.go

    		tf.UnstructuredClient = &fake.RESTClient{
    			NegotiatedSerializer: resource.UnstructuredPlusDefaultContentConfig().NegotiatedSerializer,
    			Resp: &http.Response{
    				StatusCode: http.StatusOK,
    				Header:     cmdtesting.DefaultHeader(),
    				Body: cmdtesting.ObjBody(codec,
    					cmdtesting.NewInternalType("", "", "foo")),
    			},
    		}
    		return tf
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 15 15:02:17 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  4. 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)
  5. pkg/ctrlz/topics/scopes.go

    		return scopeInfos[i].Name < scopeInfos[j].Name
    	})
    
    	fw.RenderJSON(w, http.StatusOK, scopeInfos)
    }
    
    func getScope(w http.ResponseWriter, req *http.Request) {
    	vars := mux.Vars(req)
    	name := vars["scope"]
    
    	if s := log.FindScope(name); s != nil {
    		fw.RenderJSON(w, http.StatusOK, getScopeInfo(s))
    		return
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 14:06:41 UTC 2023
    - 4K bytes
    - Viewed (0)
  6. cmd/crossdomain-xml-handler_test.go

    	handler := setCrossDomainPolicyMiddleware(router)
    	srv := httptest.NewServer(handler)
    
    	resp, err := http.Get(srv.URL + crossDomainXMLEntity)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if resp.StatusCode != http.StatusOK {
    		t.Fatal("Unexpected http status received", resp.Status)
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Jul 08 14:31:42 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. pkg/probe/http/http_test.go

    		health     probe.Result
    		accBody    string
    		notBody    string
    	}{
    		// The probe will be filled in below.  This is primarily testing that an HTTP GET happens.
    		{
    			handler: handleReq(http.StatusOK, "ok body"),
    			health:  probe.Success,
    			accBody: "ok body",
    		},
    		{
    			handler:    headerCounterHandler,
    			reqHeaders: http.Header{},
    			health:     probe.Success,
    			accBody:    "3",
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 18 01:40:08 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  10. 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)
Back to top