Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 150 for resps (0.21 sec)

  1. internal/config/identity/openid/jwt.go

    	client := &http.Client{
    		Transport: r.transport,
    	}
    
    	resp, err := client.Get(pCfg.JWKS.URL.String())
    	if err != nil {
    		return err
    	}
    	defer r.closeRespFn(resp.Body)
    	if resp.StatusCode != http.StatusOK {
    		return errors.New(resp.Status)
    	}
    
    	return r.pubKeys.parseAndAdd(resp.Body)
    }
    
    // ErrTokenExpired - error token expired
    var (
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 18:10:41 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/config_test.go

    		// healthz checks are installed in PrepareRun
    		resp, err := http.Get(server.URL + "/healthz?exclude=wrapping-health&exclude=delegate-health")
    		if err != nil {
    			t.Fatal(err)
    		}
    		data, _ := io.ReadAll(resp.Body)
    		if http.StatusOK != resp.StatusCode {
    			t.Logf("got %d", resp.StatusCode)
    			t.Log(string(data))
    			return false, nil
    		}
    		return true, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  3. cmd/kms-handlers.go

    		response.DecryptionErr = "The generated and the decrypted data key do not match"
    		resp, err := json.Marshal(response)
    		if err != nil {
    			writeCustomErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrInternalError), err.Error(), r.URL)
    			return
    		}
    		writeSuccessResponseJSON(w, resp)
    		return
    	}
    
    	resp, err := json.Marshal(response)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  4. src/runtime/chanbarrier_test.go

    func doRequest(useSelect bool) (*response, error) {
    	type async struct {
    		resp *response
    		err  error
    	}
    	ch := make(chan *async, 0)
    	done := make(chan struct{}, 0)
    
    	if useSelect {
    		go func() {
    			select {
    			case ch <- &async{resp: nil, err: myError{}}:
    			case <-done:
    			}
    		}()
    	} else {
    		go func() {
    			ch <- &async{resp: nil, err: myError{}}
    		}()
    	}
    
    	r := <-ch
    	runtime.Gosched()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 17:50:18 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  5. istioctl/pkg/admin/istiodconfig.go

    func (c *ControlzClient) GetScopes() ([]*ScopeInfo, error) {
    	var scopeInfos []*ScopeInfo
    	resp, err := c.httpClient.Get(c.baseURL.String())
    	if err != nil {
    		return nil, err
    	}
    	defer resp.Body.Close()
    	if resp.StatusCode != http.StatusOK {
    		return nil, fmt.Errorf("request not successful %s", resp.Status)
    	}
    
    	err = json.NewDecoder(resp.Body).Decode(&scopeInfos)
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  6. pilot/cmd/pilot-agent/status/server_test.go

    	if err != nil {
    		t.Fatalf("[%v] failed to create request", pprofPath)
    	}
    	resp, err := client.Do(req)
    	if err != nil {
    		t.Fatal("request failed: ", err)
    	}
    	defer resp.Body.Close()
    	if resp.StatusCode != http.StatusOK {
    		t.Errorf("[%v] unexpected status code, want = %v, got = %v", pprofPath, http.StatusOK, resp.StatusCode)
    	}
    }
    
    func TestStats(t *testing.T) {
    	cases := []struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/genericapiserver_test.go

    		// healthz checks are installed in PrepareRun
    		resp, err = http.Get(server.URL + "/healthz")
    		assert.NoError(err)
    		data, _ := io.ReadAll(resp.Body)
    		if http.StatusOK != resp.StatusCode {
    			t.Logf("got %d", resp.StatusCode)
    			t.Log(string(data))
    			return false, nil
    		}
    		return true, nil
    	}))
    	resp, err = http.Get(server.URL + "/healthz/ping")
    	assert.NoError(err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top