Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 812 for Req (0.04 sec)

  1. src/net/http/httputil/dump_test.go

    			req := ti.Req
    			if req == nil {
    				req = ti.GetReq()
    			}
    
    			if req.Header == nil {
    				req.Header = make(http.Header)
    			}
    
    			if ti.Body == nil {
    				return req
    			}
    			switch b := ti.Body.(type) {
    			case []byte:
    				req.Body = io.NopCloser(bytes.NewReader(b))
    			case func() io.ReadCloser:
    				req.Body = b()
    			default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 17:34:07 UTC 2022
    - 12.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/proxy/upgradeaware_test.go

    	responseHeader map[string]string
    	t              *testing.T
    }
    
    func (s *SimpleBackendHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
    	s.requestURL = *req.URL
    	s.requestHost = req.Host
    	s.requestHeader = req.Header
    	s.requestMethod = req.Method
    	var err error
    	s.requestBody, err = io.ReadAll(req.Body)
    	if err != nil {
    		s.t.Errorf("Unexpected error: %v", err)
    		return
    	}
    
    	if s.responseHeader != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 10 07:29:34 UTC 2023
    - 39.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/util/proxy/streamtranslator.go

    	}
    }
    
    func (h *StreamTranslatorHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
    	// Create WebSocket server, including particular streams requested. If this websocket
    	// endpoint is not able to be upgraded, the websocket library will return errors
    	// to the client.
    	websocketStreams, err := webSocketServerStreams(req, w, h.Options)
    	if err != nil {
    		// Client error increments bad request status code.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 27 23:21:55 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. security/pkg/pki/testdata/multilevelpki/certs.sh

    # Root CA
    #openssl genrsa -out root-key.pem 4096
    openssl req -new -key root-key.pem -out root-cert.csr -sha256 <<EOF
    US
    California
    Sunnyvale
    Istio
    Test
    Root CA
    ******@****.***
    
    
    EOF
    openssl x509 -req -days 3650 -in root-cert.csr -sha256 -signkey root-key.pem -out root-cert.pem
    
    # Intermediate CA
    #openssl genrsa -out int-key.pem 4096
    openssl req -new -key int-key.pem -out int-cert.csr -config int-cert.cfg -batch -sha256
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Sep 14 20:15:07 UTC 2019
    - 1.8K bytes
    - Viewed (0)
  5. cmd/test-utils_test.go

    	req.Header.Set("x-amz-decoded-content-length", strconv.FormatInt(dataLength, 10))
    	req.Header.Set("content-length", strconv.FormatInt(contentLength, 10))
    
    	// Seek back to beginning.
    	body.Seek(0, 0)
    
    	// Add body
    	req.Body = io.NopCloser(body)
    	req.ContentLength = contentLength
    
    	return req, nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/authentication/request/bearertoken/bearertoken.go

    		if len(parts) == 3 {
    			warning.AddWarning(req.Context(), "", invalidTokenWithSpaceWarning)
    		}
    		return nil, false, nil
    	}
    
    	resp, ok, err := a.auth.AuthenticateToken(req.Context(), token)
    	// if we authenticated successfully, go ahead and remove the bearer token so that no one
    	// is ever tempted to use it inside of the API server
    	if ok {
    		req.Header.Del("Authorization")
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 25 13:22:28 UTC 2022
    - 2K bytes
    - Viewed (0)
  7. tools/certs/Makefile.selfsigned.mk

    root-ca: root-key.pem root-cert.pem
    
    root-cert.pem: root-cert.csr root-key.pem
    	@echo "generating $@"
    	@openssl x509 -req -sha256 -days $(ROOTCA_DAYS) -signkey root-key.pem \
    		-extensions req_ext -extfile root-ca.conf \
    		-in $< -out $@
    
    root-cert.csr: root-key.pem root-ca.conf
    	@echo "generating $@"
    	@openssl req -sha256 -new -key $< -config root-ca.conf -out $@
    
    root-key.pem:
    	@echo "generating $@"
    	@openssl genrsa -out $@ 4096
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 28 19:49:09 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  8. cmd/signature-v2_test.go

    			if errCode != testCase.expected {
    				t.Errorf("(%d) expected to get %s, instead got %s", i, niceError(testCase.expected), niceError(errCode))
    			}
    		} else {
    			err = preSignV2(req, accessKey, secretKey, now.Unix()+60)
    			if err != nil {
    				t.Fatalf("(%d) failed to preSignV2 http request, got %v", i, err)
    			}
    			// Should be set since we are simulating a http server.
    			req.RequestURI = req.URL.RequestURI()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Oct 14 10:08:40 UTC 2022
    - 8K bytes
    - Viewed (0)
  9. pilot/pkg/xds/ads.go

    func (s *DiscoveryServer) processRequest(req *discovery.DiscoveryRequest, con *Connection) error {
    	stype := v3.GetShortType(req.TypeUrl)
    	log.Debugf("ADS:%s: REQ %s resources:%d nonce:%s version:%s ", stype,
    		con.ID(), len(req.ResourceNames), req.ResponseNonce, req.VersionInfo)
    	if req.TypeUrl == v3.HealthInfoType {
    		s.handleWorkloadHealthcheck(con.proxy, req)
    		return nil
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 08:29:05 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  10. cmd/url_test.go

    	b.ResetTimer()
    
    	if err := req.ParseForm(); err != nil {
    		b.Fatal(err)
    	}
    
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			req.Form.Get("uploadId")
    		}
    	})
    
    	// Benchmark ends here. Stop timer.
    	b.StopTimer()
    }
    
    // BenchmarkURLQuery - benchmark URL memory allocations
    func BenchmarkURLQuery(b *testing.B) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 16 17:28:29 UTC 2021
    - 2K bytes
    - Viewed (0)
Back to top