Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 643 for Req (0.03 sec)

  1. src/net/http/transport_test.go

    		fetch := func(n int) string {
    			req := new(Request)
    			var err error
    			req.URL, err = url.Parse(ts.URL)
    			if err != nil {
    				t.Fatalf("URL parse error: %v", err)
    			}
    			req.Method = "GET"
    			req.Proto = "HTTP/1.1"
    			req.ProtoMajor = 1
    			req.ProtoMinor = 1
    			req.Close = reqClose
    
    			res, err := c.Do(req)
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/writers_test.go

    		mediaType  string
    		out        []byte
    		outErrs    []error
    		req        *http.Request
    		statusCode int
    		object     runtime.Object
    
    		wantCode    int
    		wantHeaders http.Header
    	}
    	newTest := func() test {
    		return test{
    			name:      "compress on gzip",
    			out:       largePayload,
    			mediaType: "application/json",
    			req: &http.Request{
    				Header: http.Header{
    					"Accept-Encoding": []string{"gzip"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  3. platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheServiceErrorHandlingIntegrationTest.groovy

            // Drop the connection and stop the server after reading 1024 bytes
            httpBuildCacheServer.addResponder { req, res ->
                if (req.method == "PUT") {
                    1024.times { req.inputStream.read() }
                    httpBuildCacheServer.stop()
                    false
                } else {
                    true
                }
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/VirtualHostHelper.java

        }
    
        public String getVirtualHostKey() {
            return LaRequestUtil.getOptionalRequest().map(req -> (String) req.getAttribute(FessConfig.VIRTUAL_HOST_VALUE)).orElseGet(() -> {
                final String value = processVirtualHost(s -> s, StringUtil.EMPTY);
                LaRequestUtil.getOptionalRequest().ifPresent(req -> req.setAttribute(FessConfig.VIRTUAL_HOST_VALUE, value));
                return value;
            });
        }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/filters/waitgroup.go

    	return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
    		ctx := req.Context()
    		requestInfo, ok := apirequest.RequestInfoFrom(ctx)
    		if !ok {
    			// if this happens, the handler chain isn't setup correctly because there is no request info
    			responsewriters.InternalError(w, req, errors.New("no RequestInfo found in the context"))
    			return
    		}
    
    		if longRunning(req, requestInfo) {
    			handler.ServeHTTP(w, req)
    			return
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jan 10 21:18:55 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  6. cmd/erasure-common.go

    				return errDiskNotFound
    			}
    			return disks[index].ReadMultiple(ctx, req, resps[index])
    		}, index)
    	}
    
    	dataArray := make([]ReadMultipleResp, 0, len(req.Files))
    	// Merge results. They should come in order from each.
    	for _, wantFile := range req.Files {
    		quorum := 0
    		toAdd := ReadMultipleResp{
    			Bucket: req.Bucket,
    			Prefix: req.Prefix,
    			File:   wantFile,
    		}
    		for i := range resps {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  7. tests/testdata/certs/generate.sh

    # Create a server certificate
    openssl genrsa -out "${WD}/pilot/key.pem" 2048
    openssl req -new -sha256 -key "${WD}/pilot/key.pem" -out "${WD}/server.csr" -subj "/CN=istiod.istio-system.svc.cluster.local" -config "${WD}/server.conf"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 05 19:49:21 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/server/filters/timeout_test.go

    		return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
    			req = req.WithContext(ctx)
    			handler.ServeHTTP(w, req)
    		})
    	}
    
    	handler := newHandler(sendResponse, doPanic, writeErrors)
    	ts := httptest.NewServer(withDeadline(withPanicRecovery(
    		WithTimeout(handler, func(req *http.Request) (*http.Request, bool, func(), *apierrors.StatusError) {
    			return req, false, record.Record, timeoutErr
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/healthz/healthz_test.go

    	// scenario 2: close the channel that will cause the readyz checker to report success,
    	//             verify that hasBeenReadyFn was called
    	close(readyzCh)
    	rr = httptest.NewRecorder()
    	req = req.Clone(context.TODO())
    	mux.ServeHTTP(rr, req)
    	if rr.Code != http.StatusOK {
    		t.Errorf("scenario 2: unexpected status code returned, expected %d, got %d", http.StatusOK, rr.Code)
    	}
    	if hasBeenReadyCounter != 1 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 15 20:43:16 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  10. src/cmd/go/internal/vcweb/insecure.go

    func (h *insecureHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
    	if req.Host == "" && req.URL.Host == "" {
    		http.Error(w, "no Host provided in request", http.StatusBadRequest)
    		return
    	}
    
    	// Note that if the handler is wrapped with http.StripPrefix, the prefix
    	// will remain stripped in the redirected URL, preventing redirect loops
    	// if the scheme is already "http".
    
    	u := *req.URL
    	u.Scheme = "http"
    	u.User = nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 25 13:22:22 UTC 2022
    - 1.2K bytes
    - Viewed (0)
Back to top