Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for NoBody (0.17 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/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)
  3. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store.go

    	// but before AfterCreate and Decorator, indicating via the argument
    	// whether the operation succeeded.  If this returns an error, the function
    	// is not called.  Almost nobody should use this hook.
    	BeginCreate BeginCreateFunc
    	// AfterCreate implements a further operation to run after a resource is
    	// created and before it is decorated, optional.
    	AfterCreate AfterCreateFunc
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 23:22:44 UTC 2024
    - 60.8K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/riscv/obj.go

    	wantNoneReg(ctxt, ins, "rs2", ins.rs2)
    	wantNoneReg(ctxt, ins, "rs3", ins.rs3)
    }
    
    func validateRaw(ctxt *obj.Link, ins *instruction) {
    	// Treat the raw value specially as a 32-bit unsigned integer.
    	// Nobody wants to enter negative machine code.
    	if ins.imm < 0 || 1<<32 <= ins.imm {
    		ctxt.Diag("%v: immediate %d in raw position cannot be larger than 32 bits", ins.as, ins.imm)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 07 03:32:27 UTC 2024
    - 77K 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