Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 266 for Req (3.23 sec)

  1. src/cmd/vendor/golang.org/x/sys/unix/ioctl_signed.go

    func IoctlGetInt(fd int, req int) (int, error) {
    	var value int
    	err := ioctlPtr(fd, req, unsafe.Pointer(&value))
    	return value, err
    }
    
    func IoctlGetWinsize(fd int, req int) (*Winsize, error) {
    	var value Winsize
    	err := ioctlPtr(fd, req, unsafe.Pointer(&value))
    	return &value, err
    }
    
    func IoctlGetTermios(fd int, req int) (*Termios, error) {
    	var value Termios
    	err := ioctlPtr(fd, req, unsafe.Pointer(&value))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/ioctl_unsigned.go

    func IoctlGetInt(fd int, req uint) (int, error) {
    	var value int
    	err := ioctlPtr(fd, req, unsafe.Pointer(&value))
    	return value, err
    }
    
    func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
    	var value Winsize
    	err := ioctlPtr(fd, req, unsafe.Pointer(&value))
    	return &value, err
    }
    
    func IoctlGetTermios(fd int, req uint) (*Termios, error) {
    	var value Termios
    	err := ioctlPtr(fd, req, unsafe.Pointer(&value))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/filters/wrap.go

    			runtime.HandleErrorWithContext(req.Context(), nil, "Timeout or abort while handling", "method", req.Method, "URI", req.RequestURI, "auditID", audit.GetAuditIDTruncated(req.Context()))
    			return
    		}
    		http.Error(w, "This request caused apiserver to panic. Look in the logs for details.", http.StatusInternalServerError)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. src/net/http/httptest/httptest.go

    	if method == "" {
    		method = "GET"
    	}
    	req, err := http.ReadRequest(bufio.NewReader(strings.NewReader(method + " " + target + " HTTP/1.0\r\n\r\n")))
    	if err != nil {
    		panic("invalid NewRequest arguments; " + err.Error())
    	}
    	req = req.WithContext(ctx)
    
    	// HTTP/1.0 was used above to avoid needing a Host field. Change it to 1.1 here.
    	req.Proto = "HTTP/1.1"
    	req.ProtoMinor = 1
    	req.Close = false
    
    	if body != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 18:09:14 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/endpoints/filters/impersonation.go

    	return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
    		impersonationRequests, err := buildImpersonationRequests(req.Header)
    		if err != nil {
    			klog.V(4).Infof("%v", err)
    			responsewriters.InternalError(w, req, err)
    			return
    		}
    		if len(impersonationRequests) == 0 {
    			handler.ServeHTTP(w, req)
    			return
    		}
    
    		ctx := req.Context()
    		requestor, exists := request.UserFrom(ctx)
    		if !exists {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 07 10:10:35 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/filters/request_deadline.go

    	return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
    		ctx := req.Context()
    
    		requestInfo, ok := request.RequestInfoFrom(ctx)
    		if !ok {
    			handleError(w, req, http.StatusInternalServerError, nil, "no RequestInfo found in context, handler chain must be wrong")
    			return
    		}
    		if longRunning(req, requestInfo) {
    			handler.ServeHTTP(w, req)
    			return
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 05 21:12:12 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. src/cmd/go/internal/web/http.go

    			fmt.Fprintf(os.Stderr, "# get %s\n", url.Redacted())
    		}
    
    		req, err := http.NewRequest("GET", url.String(), nil)
    		if err != nil {
    			return nil, err
    		}
    		if url.Scheme == "https" {
    			auth.AddCredentials(req)
    		}
    		t, intercepted := interceptURL(req.URL)
    		if intercepted {
    			req.Host = req.URL.Host
    			req.URL.Host = t.ToHost
    		}
    
    		release, err := base.AcquireNet()
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 10 17:34:27 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  8. src/net/http/triv.go

    	ctr.mu.Lock()
    	defer ctr.mu.Unlock()
    	return strconv.Itoa(ctr.n)
    }
    
    func (ctr *Counter) ServeHTTP(w http.ResponseWriter, req *http.Request) {
    	ctr.mu.Lock()
    	defer ctr.mu.Unlock()
    	switch req.Method {
    	case "GET":
    		ctr.n++
    	case "POST":
    		var buf strings.Builder
    		io.Copy(&buf, req.Body)
    		body := buf.String()
    		if n, err := strconv.Atoi(body); err != nil {
    			fmt.Fprintf(w, "bad POST: %v\nbody: [%v]\n", err, body)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. src/cmd/go/internal/auth/auth.go

    package auth
    
    import "net/http"
    
    // AddCredentials fills in the user's credentials for req, if any.
    // The return value reports whether any matching credentials were found.
    func AddCredentials(req *http.Request) (added bool) {
    	host := req.Host
    	if host == "" {
    		host = req.URL.Hostname()
    	}
    
    	// TODO(golang.org/issue/26232): Support arbitrary user-provided credentials.
    	netrcOnce.Do(readNetrc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 25 13:22:22 UTC 2022
    - 767 bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/helpers.go

    	if lazy.req != nil {
    		accept := lazy.req.Header.Get("Accept")
    		return accept
    	}
    
    	return "unknown"
    }
    
    // lazyAPIGroup implements String() string and it will
    // lazily get Group from request info.
    type lazyAPIGroup struct {
    	req *http.Request
    }
    
    func (lazy *lazyAPIGroup) String() string {
    	if lazy.req != nil {
    		ctx := lazy.req.Context()
    		requestInfo, ok := apirequest.RequestInfoFrom(ctx)
    		if ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Sep 03 15:25:35 UTC 2023
    - 4.9K bytes
    - Viewed (0)
Back to top