Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 301 for Req (0.02 sec)

  1. staging/src/k8s.io/cli-runtime/pkg/resource/helper_test.go

    			if err != nil {
    				return
    			}
    			if tt.Req != nil && !tt.Req(client.Req) {
    				t.Errorf("unexpected request: %#v", client.Req)
    			}
    		})
    	}
    }
    
    func TestHelperCreate(t *testing.T) {
    	expectPost := func(req *http.Request) bool {
    		if req.Method != "POST" {
    			t.Errorf("unexpected method: %#v", req)
    			return false
    		}
    		parts := splitPath(req.URL.Path)
    		if parts[1] != "bar" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 09:47:52 UTC 2023
    - 25.2K bytes
    - Viewed (0)
  2. src/net/http/request_test.go

    		t.Errorf(`req.FormValue("z") = %q, want "post"`, z)
    	}
    	if bq, found := req.PostForm["q"]; found {
    		t.Errorf(`req.PostForm["q"] = %q, want no entry in map`, bq)
    	}
    	if bz := req.PostFormValue("z"); bz != "post" {
    		t.Errorf(`req.PostFormValue("z") = %q, want "post"`, bz)
    	}
    	if qs := req.Form["q"]; !reflect.DeepEqual(qs, []string{"foo", "bar"}) {
    		t.Errorf(`req.Form["q"] = %q, want ["foo", "bar"]`, qs)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 18:42:34 UTC 2024
    - 44K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/get.go

    		namespace, name, err := scope.Namer.Name(req)
    		if err != nil {
    			scope.err(err, w, req)
    			return
    		}
    		ctx = request.WithNamespace(ctx, namespace)
    
    		outputMediaType, _, err := negotiation.NegotiateOutputMediaType(req, scope.Serializer, scope)
    		if err != nil {
    			scope.err(err, w, req)
    			return
    		}
    
    		result, err := getter(ctx, name, req)
    		if err != nil {
    			scope.err(err, w, req)
    			return
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 10:22:16 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  4. pkg/volume/csi/fake/fake_client.go

    		DeviceMountPath: req.GetStagingTargetPath(),
    		VolumeContext:   req.GetVolumeContext(),
    	}
    	if req.GetVolumeCapability().GetMount() != nil {
    		publishedVolume.FSType = req.GetVolumeCapability().GetMount().FsType
    		publishedVolume.MountFlags = req.GetVolumeCapability().GetMount().MountFlags
    		publishedVolume.VolumeMountGroup = req.GetVolumeCapability().GetMount().VolumeMountGroup
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 16K bytes
    - Viewed (0)
  5. internal/grid/handlers.go

    // The request may be reused, so caller should clear any fields.
    func (h *SingleHandler[Req, Resp]) NewRequest() Req {
    	return h.newReq()
    }
    
    // Register a handler for a Req -> Resp roundtrip.
    // Requests are automatically recycled.
    func (h *SingleHandler[Req, Resp]) Register(m *Manager, handle func(req Req) (resp Resp, err *RemoteErr), subroute ...string) error {
    	if h.newReq == nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  6. pilot/pkg/xds/debug.go

    func (s *DiscoveryServer) endpointShardz(w http.ResponseWriter, req *http.Request) {
    	writeJSON(w, s.Env.EndpointIndex.Shardz(), req)
    }
    
    func (s *DiscoveryServer) cachez(w http.ResponseWriter, req *http.Request) {
    	if err := req.ParseForm(); err != nil {
    		w.WriteHeader(http.StatusBadRequest)
    		_, _ = w.Write([]byte("Failed to parse request\n"))
    		return
    	}
    	if req.Form.Get("clear") != "" {
    		s.Cache.ClearAll()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 00:26:45 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  7. src/net/http/cgi/host.go

    func (h *Handler) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
    	if len(req.TransferEncoding) > 0 && req.TransferEncoding[0] == "chunked" {
    		rw.WriteHeader(http.StatusBadRequest)
    		rw.Write([]byte("Chunked request bodies are not supported by CGI."))
    		return
    	}
    
    	root := strings.TrimRight(h.Root, "/")
    	pathInfo := strings.TrimPrefix(req.URL.Path, root)
    
    	port := "80"
    	if req.TLS != nil {
    		port = "443"
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 20:46:32 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. src/net/http/fcgi/child.go

    // response implements http.ResponseWriter.
    type response struct {
    	req            *request
    	header         http.Header
    	code           int
    	wroteHeader    bool
    	wroteCGIHeader bool
    	w              *bufWriter
    }
    
    func newResponse(c *child, req *request) *response {
    	return &response{
    		req:    req,
    		header: http.Header{},
    		w:      newWriter(c.conn, typeStdout, req.reqId),
    	}
    }
    
    func (r *response) Header() http.Header {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  9. cmd/auth-handler_test.go

    	req := mustNewRequest(method, urlStr, contentLength, body, t)
    	req.Header.Set("Content-Md5", "invalid-digest")
    	cred := globalActiveCred
    	if err := signRequestV4(req, cred.AccessKey, cred.SecretKey); err != nil {
    		t.Fatalf("Unable to initialized new signed http request %s", err)
    	}
    	return req
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/proxy/upgradeaware.go

    	if proxyRedirect {
    		return
    	}
    
    	if h.Transport == nil || h.WrapTransport {
    		h.Transport = h.defaultProxyTransport(req.URL, h.Transport)
    	}
    
    	// WithContext creates a shallow clone of the request with the same context.
    	newReq := req.WithContext(req.Context())
    	newReq.Header = utilnet.CloneHeader(req.Header)
    	if !h.UseRequestLocation {
    		newReq.URL = &loc
    	}
    	if h.UseLocationHost {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:10:30 UTC 2024
    - 19.6K bytes
    - Viewed (0)
Back to top