Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for foobody (0.38 sec)

  1. src/net/http/request.go

    		// and have the http package also treat that sentinel
    		// variable to mean explicitly zero.
    		if req.GetBody != nil && req.ContentLength == 0 {
    			req.Body = NoBody
    			req.GetBody = func() (io.ReadCloser, error) { return NoBody, nil }
    		}
    	}
    
    	return req, nil
    }
    
    // BasicAuth returns the username and password provided in the request's
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  2. src/net/http/client_test.go

    		}
    	}))
    
    	bodyr, bodyw := io.Pipe()
    	var gotBody string
    	var wg sync.WaitGroup
    	wg.Add(1)
    	go func() {
    		defer wg.Done()
    		req, _ := NewRequest("GET", cst.ts.URL, bodyr)
    		res, err := cst.c.Do(req)
    		b, err := io.ReadAll(res.Body)
    		if err != nil {
    			t.Error(err)
    		}
    		gotBody = string(b)
    	}()
    
    	select {
    	case <-reqc:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  3. src/net/http/httputil/reverseproxy_test.go

    		},
    		{
    			name: "modifyresponse_noerr",
    			transport: staticResponseRoundTripper{
    				&http.Response{StatusCode: 345, Body: http.NoBody},
    			},
    			modifyResponse: func(res *http.Response) error {
    				res.StatusCode++
    				return nil
    			},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/route/route_test.go

    		g := NewWithT(t)
    		cg := core.NewConfigGenTest(t, core.TestOptions{})
    
    		fooNode := cg.SetupProxy(&model.Proxy{
    			ConfigNamespace: "foo",
    		})
    
    		routes, err := route.BuildHTTPRoutesForVirtualService(fooNode, virtualServiceMatchingOnSourceNamespace,
    			serviceRegistry, nil, 8080, gatewayNames, route.RouteOptions{})
    		xdstest.ValidateRoutes(t, routes)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 88.1K bytes
    - Viewed (0)
  5. src/net/http/transport.go

    // This lets rewindBody avoid an error result when the request
    // does not have GetBody but the body hasn't been read at all yet.
    func setupRewindBody(req *Request) *Request {
    	if req.Body == nil || req.Body == NoBody {
    		return req
    	}
    	newReq := *req
    	newReq.Body = &readTrackingBody{ReadCloser: req.Body}
    	return &newReq
    }
    
    // rewindBody returns a new request with the body rewound.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  6. src/runtime/mprof.go

    // at the beginning of main).
    var MemProfileRate int = 512 * 1024
    
    // disableMemoryProfiling is set by the linker if runtime.MemProfile
    // is not used and the link type guarantees nobody else could use it
    // elsewhere.
    var disableMemoryProfiling bool
    
    // A MemProfileRecord describes the live objects allocated
    // by a particular call sequence (stack trace).
    type MemProfileRecord struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  7. cmd/xl-storage.go

    			done = globalScannerMetrics.time(scannerMetricTierObjSweep)
    			globalExpiryState.enqueueFreeVersion(oi)
    			done()
    		}
    
    		// These are rather expensive. Skip if nobody listens.
    		if globalTrace.NumSubscribers(madmin.TraceScanner) > 0 {
    			if len(fivs.FreeVersions) > 0 {
    				res["free-versions"] = strconv.Itoa(len(fivs.FreeVersions))
    			}
    
    			if sizeS.versions > 0 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 85.3K bytes
    - Viewed (0)
Back to top