Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 360 for resps (0.05 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/x509metrics/server_cert_deprecations.go

    func (w *x509DeprecatedCertificateMetricsRTWrapper) RoundTrip(req *http.Request) (*http.Response, error) {
    	resp, err := w.rt.RoundTrip(req)
    
    	if err != nil {
    		for _, checker := range w.checkers {
    			if checker.CheckRoundTripError(err) {
    				checker.IncreaseMetricsCounter(req)
    			}
    		}
    	} else if resp != nil {
    		if resp.TLS != nil && len(resp.TLS.PeerCertificates) > 0 {
    			for _, checker := range w.checkers {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 7.3K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/google/pprof/internal/driver/fetch.go

    		Timeout:   timeout + 5*time.Second,
    	}
    	resp, err := client.Get(source)
    	if err != nil {
    		return nil, fmt.Errorf("http fetch: %v", err)
    	}
    	if resp.StatusCode != http.StatusOK {
    		defer resp.Body.Close()
    		return nil, statusCodeError(resp)
    	}
    
    	return resp.Body, nil
    }
    
    func statusCodeError(resp *http.Response) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 19K bytes
    - Viewed (0)
  3. pkg/proxy/healthcheck/service_health.go

    	resp.Header().Set("Content-Type", "application/json")
    	resp.Header().Set("X-Content-Type-Options", "nosniff")
    	resp.Header().Set("X-Load-Balancing-Endpoint-Weight", strconv.Itoa(count))
    
    	if count != 0 && kubeProxyHealthy {
    		resp.WriteHeader(http.StatusOK)
    	} else {
    		resp.WriteHeader(http.StatusServiceUnavailable)
    	}
    	fmt.Fprint(resp, strings.Trim(dedent.Dedent(fmt.Sprintf(`
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 30 09:25:48 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  4. internal/http/close.go

    //
    // Subsequently this allows golang http RoundTripper
    // to reuse the same connection for future requests.
    func DrainBody(respBody io.ReadCloser) {
    	// Callers should close resp.Body when done reading from it.
    	// If resp.Body is not closed, the Client's underlying RoundTripper
    	// (typically Transport) may not be able to reuse a persistent TCP
    	// connection to the server for a subsequent "keep-alive" request.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. pkg/kubelet/kuberuntime/instrumented_services.go

    	defer recordOperation(operation, time.Now())
    
    	resp, err := in.service.Exec(ctx, req)
    	recordError(operation, err)
    	return resp, err
    }
    
    func (in instrumentedRuntimeService) Attach(ctx context.Context, req *runtimeapi.AttachRequest) (*runtimeapi.AttachResponse, error) {
    	const operation = "attach"
    	defer recordOperation(operation, time.Now())
    
    	resp, err := in.service.Attach(ctx, req)
    	recordError(operation, err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 10:46:06 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  6. pilot/pkg/networking/grpcgen/cds.go

    		clusters = append(clusters, builder.build()...)
    	}
    
    	resp := make(model.Resources, 0, len(clusters))
    	for _, c := range clusters {
    		resp = append(resp, &discovery.Resource{
    			Name:     c.Name,
    			Resource: protoconv.MessageToAny(c),
    		})
    	}
    	if len(resp) == 0 && len(names) == 0 {
    		log.Warnf("did not generate any cds for %s; no names provided", node.ID)
    	}
    	return resp
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  7. docs/sts/web-identity.go

    		return d, err
    	}
    	clnt := http.Client{
    		Transport: http.DefaultTransport,
    	}
    	resp, err := clnt.Do(req)
    	if err != nil {
    		return d, err
    	}
    	defer resp.Body.Close()
    	if resp.StatusCode != http.StatusOK {
    		return d, fmt.Errorf("unexpected error returned by %s : status(%s)", ustr, resp.Status)
    	}
    	dec := json.NewDecoder(resp.Body)
    	if err = dec.Decode(&d); err != nil {
    		return d, err
    	}
    	return d, nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 19 09:13:33 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  8. pkg/credentialprovider/config.go

    		return nil, err
    	}
    	if header != nil {
    		req.Header = *header
    	}
    	resp, err := client.Do(req)
    	if err != nil {
    		return nil, err
    	}
    	defer resp.Body.Close()
    
    	if resp.StatusCode != http.StatusOK {
    		klog.V(2).InfoS("Failed to read URL", "statusCode", resp.StatusCode, "URL", url)
    		return nil, &HTTPError{
    			StatusCode: resp.StatusCode,
    			URL:        url,
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 19 15:11:57 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  9. pkg/test/echo/response.go

    		keyValues = append(keyValues, keyValue{k, v})
    	}
    	sort.Slice(keyValues, func(i, j int) bool {
    		return keyValues[i].k < keyValues[j].k
    	})
    	var resp []string
    	for _, kv := range keyValues {
    		resp = append(resp, kv.v)
    	}
    	return resp
    }
    
    func (r Response) String() string {
    	out := ""
    	out += fmt.Sprintf("RawContent:       %s\n", r.RawContent)
    	out += fmt.Sprintf("ID:               %s\n", r.ID)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 01 01:05:45 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  10. .github/workflows/create_issue.js

      const resp = await github.rest.issues.create({
        owner,
        repo,
        assignees: assignee_logins,
        title: `Issue created for Rollback of PR #${pr_number}: ${pr_title}`,
        body: `Merged PR #${pr_number} is rolled back in ${rollback_commit}.
        Please follow up with the reviewer and close this issue once its resolved.`
      });
      return `Issue created: ${resp.data.number} with Title: ${resp.data.title}`;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 18 23:04:59 UTC 2021
    - 2.8K bytes
    - Viewed (0)
Back to top