Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 812 for Req (0.71 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/proxy/transport.go

    func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) {
    	// Add reverse proxy headers.
    	forwardedURI := path.Join(t.PathPrepend, req.URL.EscapedPath())
    	if strings.HasSuffix(req.URL.Path, "/") {
    		forwardedURI = forwardedURI + "/"
    	}
    	req.Header.Set("X-Forwarded-Uri", forwardedURI)
    	if len(t.Host) > 0 {
    		req.Header.Set("X-Forwarded-Host", t.Host)
    	}
    	if len(t.Scheme) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 10 07:29:34 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  2. cmd/generic-handlers.go

    // like healthCheck request
    func guessIsHealthCheckReq(req *http.Request) bool {
    	if req == nil {
    		return false
    	}
    	aType := getRequestAuthType(req)
    	return aType == authTypeAnonymous && (req.Method == http.MethodGet || req.Method == http.MethodHead) &&
    		(req.URL.Path == healthCheckPathPrefix+healthCheckLivenessPath ||
    			req.URL.Path == healthCheckPathPrefix+healthCheckReadinessPath ||
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 06 01:01:15 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  3. pkg/volume/csi/csi_client.go

    	// should only be set when available
    	if opts.stagingTargetPath != "" {
    		req.StagingTargetPath = opts.stagingTargetPath
    	}
    
    	if opts.fsType == fsTypeBlockName {
    		req.VolumeCapability.AccessType = &csipbv1.VolumeCapability_Block{
    			Block: &csipbv1.VolumeCapability_BlockVolume{},
    		}
    	} else {
    		req.VolumeCapability.AccessType = &csipbv1.VolumeCapability_Mount{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 20 10:15:36 UTC 2022
    - 22.1K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/noderesources/least_allocated_test.go

    			},
    			existingPods: []*v1.Pod{
    				st.MakePod().Node("node1").Req(map[v1.ResourceName]string{"cpu": "3000", "memory": "0"}).Obj(),
    				st.MakePod().Node("node1").Req(map[v1.ResourceName]string{"cpu": "3000", "memory": "0"}).Obj(),
    				st.MakePod().Node("node2").Req(map[v1.ResourceName]string{"cpu": "3000", "memory": "0"}).Obj(),
    				st.MakePod().Node("node2").Req(map[v1.ResourceName]string{"cpu": "3000", "memory": "5000"}).Obj(),
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 18.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/x509metrics/server_cert_deprecations.go

    	reason string
    }
    
    func (c *counterRaiser) IncreaseMetricsCounter(req *http.Request) {
    	if req != nil && req.URL != nil {
    		if hostname := req.URL.Hostname(); len(hostname) > 0 {
    			prefix := fmt.Sprintf("%s.invalid-cert.kubernetes.io", c.id)
    			klog.Infof("%s: invalid certificate detected connecting to %q: %s", prefix, hostname, c.reason)
    			audit.AddAuditAnnotation(req.Context(), prefix+"/"+hostname, c.reason)
    		}
    	}
    	c.counter.Inc()
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 7.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/filters/authorization_test.go

    		// TODO: fake audit injector
    
    		req, _ := http.NewRequest("GET", "/api/v1/namespaces/default/pods", nil)
    		req = withTestContext(req, nil, &auditinternal.Event{Level: auditinternal.LevelMetadata})
    		ae := audit.AuditEventFrom(req.Context())
    		req.RemoteAddr = "127.0.0.1"
    		handler.ServeHTTP(httptest.NewRecorder(), req)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/http/NtlmSsp.java

                throws IOException {
            return authenticate(tc, req, resp, challenge);
        }
    
    
        /**
         * Performs NTLM authentication for the servlet request.
         * 
         * @param tc
         *            context to use
         *
         * @param req
         *            The request being serviced.
         * @param resp
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 4.7K bytes
    - Viewed (0)
  8. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/command_headers_test.go

    				Delegate: tc.delegate,
    			}
    			req := http.Request{}
    			rt.CancelRequest(&req)
    			if tc.cancelled != req.Close {
    				t.Errorf("expected RoundTripper cancel (%v), got (%v)", tc.cancelled, req.Close)
    			}
    		})
    	}
    }
    
    // Test RoundTripper with CancelRequest function.
    type cancellableRoundTripper struct{}
    
    func (rtc *cancellableRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 20 20:34:02 UTC 2021
    - 4.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java

            }
    
            ServerMessageBlock req = (ServerMessageBlock) request;
    
            req.addFlags2(this.negotiatedFlags2);
            req.setUseUnicode(req.isForceUnicode() || this.useUnicode);
            if ( req.isUseUnicode() ) {
                req.addFlags2(SmbConstants.FLAGS2_UNICODE);
            }
    
            if ( req instanceof SmbComTransaction ) {
                ( (SmbComTransaction) req ).setMaxBufferSize(this.snd_buf_size);
            }
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Tue Jul 07 10:52:42 UTC 2020
    - 15.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbPipeInputStream.java

                if ( th.isSMB2() ) {
                    Smb2IoctlRequest req = new Smb2IoctlRequest(th.getConfig(), Smb2IoctlRequest.FSCTL_PIPE_PEEK, fd.getFileId());
                    req.setMaxOutputResponse(16);
                    req.setFlags(Smb2IoctlRequest.SMB2_O_IOCTL_IS_FSCTL);
                    Smb2IoctlResponse resp = th.send(req, RequestParam.NO_RETRY);
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Aug 05 07:12:23 UTC 2018
    - 3.5K bytes
    - Viewed (0)
Back to top