Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 360 for resps (0.05 sec)

  1. android/guava-tests/benchmark/com/google/common/collect/MinMaxPriorityQueueBenchmark.java

          queue.add(random.nextInt());
        }
      }
    
      @Benchmark
      void pollAndAdd(int reps) {
        for (int i = 0; i < reps; i++) {
          // TODO(kevinb): precompute random #s?
          queue.add(queue.poll() ^ random.nextInt());
        }
      }
    
      @Benchmark
      void populate(int reps) {
        for (int i = 0; i < reps; i++) {
          queue.clear();
          for (int j = 0; j < size; j++) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/registry/generic/rest/streamer.go

    		if err = s.ResponseChecker.Check(resp); err != nil {
    			return nil, false, "", err
    		}
    	}
    
    	contentType = s.ContentType
    	if len(contentType) == 0 {
    		contentType = resp.Header.Get("Content-Type")
    		if len(contentType) > 0 {
    			contentType = strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0])
    		}
    	}
    	flush = s.Flush
    	stream = resp.Body
    	return
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 10 16:43:09 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  3. src/net/http/pprof/pprof_test.go

    			w := httptest.NewRecorder()
    			tc.handler(w, req)
    
    			resp := w.Result()
    			if got, want := resp.StatusCode, tc.statusCode; got != want {
    				t.Errorf("status code: got %d; want %d", got, want)
    			}
    
    			body, err := io.ReadAll(resp.Body)
    			if err != nil {
    				t.Errorf("when reading response body, expected non-nil err; got %v", err)
    			}
    			if got, want := resp.Header.Get("X-Content-Type-Options"), "nosniff"; got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 07 19:52:28 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  4. src/net/http/httputil/dump.go

    		}
    	} else if resp.Body == nil {
    		resp.Body = emptyBody
    	} else {
    		save, resp.Body, err = drainBody(resp.Body)
    		if err != nil {
    			return nil, err
    		}
    	}
    	err = resp.Write(&b)
    	if err == errNoBody {
    		err = nil
    	}
    	resp.Body = save
    	resp.ContentLength = savecl
    	if err != nil {
    		return nil, err
    	}
    	return b.Bytes(), nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/test_vet.txt

    # ensure all runs non-default vet
    ! go test -vet=all ./vetall/...
    stderr 'using resp before checking for errors'
    
    # Test issue #47309
    ! go test -vet=bools,xyz ./vetall/...
    stderr '-vet argument must be a supported analyzer'
    
    # Test with a single analyzer
    ! go test -vet=httpresponse ./vetall/...
    stderr 'using resp before checking for errors'
    
    # Test with a list of analyzers
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 27 20:14:44 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  6. internal/kms/kms.go

    	return DEK{
    		KeyID:      name,
    		Version:    resp.Version,
    		Plaintext:  resp.Plaintext,
    		Ciphertext: resp.Ciphertext,
    	}, nil
    }
    
    func (c *kmsConn) Decrypt(ctx context.Context, req *DecryptRequest) ([]byte, error) {
    	aad, err := req.AssociatedData.MarshalText()
    	if err != nil {
    		return nil, err
    	}
    
    	ciphertext, _ := parseCiphertext(req.Ciphertext)
    	resp, err := c.client.Decrypt(ctx, &kms.DecryptRequest{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  7. pkg/controlplane/instance_test.go

    	defer etcdserver.Terminate(t)
    
    	req, _ := http.NewRequest("GET", "/version", nil)
    	resp := httptest.NewRecorder()
    	s.ControlPlane.GenericAPIServer.Handler.ServeHTTP(resp, req)
    	if resp.Code != 200 {
    		t.Fatalf("expected http 200, got: %d", resp.Code)
    	}
    
    	var info version.Info
    	err := json.NewDecoder(resp.Body).Decode(&info)
    	if err != nil {
    		t.Errorf("unexpected error: %v", err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 03 11:50:04 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  8. internal/grid/trace.go

    			},
    			RespInfo: madmin.TraceResponseInfo{
    				Time:       end,
    				Headers:    nil,
    				StatusCode: status,
    				Body:       []byte(bytesOrLength(resp)),
    			},
    			CallStats: madmin.TraceCallStats{
    				InputBytes:      len(req),
    				OutputBytes:     len(resp),
    				TimeToFirstByte: end.Sub(start),
    			},
    		},
    	}
    	// If the context contains a TraceParamsKey, add it to the trace path.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Jun 01 05:17:37 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. src/cmd/pprof/pprof.go

    			TLSClientConfig:       tlsConfig,
    		},
    	}
    	resp, err := client.Get(source)
    	if err != nil {
    		return nil, err
    	}
    	defer resp.Body.Close()
    	if resp.StatusCode != http.StatusOK {
    		return nil, statusCodeError(resp)
    	}
    	return profile.Parse(resp.Body)
    }
    
    func statusCodeError(resp *http.Response) error {
    	if resp.Header.Get("X-Go-Pprof") != "" && strings.Contains(resp.Header.Get("Content-Type"), "text/plain") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  10. internal/grid/README.md

        if err != nil { ... }
    	
        // Read results from the stream
        err = stream.Results(func(resp *Resp) error {
            fmt.Println("Got result", resp)
            // Return the response for reuse
    		instance.PutResponse(resp)
            return nil
        })
    ```
    
    There are handlers for requests with:
     * No input stream: `RegisterNoInput`.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top