Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 643 for Req (0.35 sec)

  1. src/net/http/clientserver_test.go

    	for i, tt := range tests {
    		res, err := cst.c.Do(tt.req)
    		if err != nil {
    			t.Errorf("%d. RoundTrip = %v", i, err)
    			continue
    		}
    		res.Body.Close()
    		req := <-gotc
    		if req.Method != "CONNECT" {
    			t.Errorf("method = %q; want CONNECT", req.Method)
    		}
    		if req.Host != tt.want {
    			t.Errorf("Host = %q; want %q", req.Host, tt.want)
    		}
    		if req.URL.Host != tt.want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 46.6K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  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. 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)
  7. 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)
  8. 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)
  9. staging/src/k8s.io/apiserver/pkg/endpoints/filters/authorization.go

    		klog.Warning("Authorization is disabled")
    		return handler
    	}
    	return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
    		ctx := req.Context()
    		authorizationStart := time.Now()
    
    		attributes, err := GetAuthorizerAttributes(ctx)
    		if err != nil {
    			responsewriters.InternalError(w, req, err)
    			return
    		}
    		authorized, reason, err := a.Authorize(ctx, attributes)
    
    		authorizationFinish := time.Now()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 20 13:35:55 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  10. src/net/http/readrequest_test.go

    		tt := &reqTests[i]
    		req, err := ReadRequest(bufio.NewReader(strings.NewReader(tt.Raw)))
    		if err != nil {
    			if err.Error() != tt.Error {
    				t.Errorf("#%d: error %q, want error %q", i, err.Error(), tt.Error)
    			}
    			continue
    		}
    		rbody := req.Body
    		req.Body = nil
    		testName := fmt.Sprintf("Test %d (%q)", i, tt.Raw)
    		diff(t, testName, req, tt.Req)
    		var bout strings.Builder
    		if rbody != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 14 22:23:32 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top