Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 521 for RES (0.09 sec)

  1. pkg/slices/slices.go

    func Reference[E any](s []E) []*E {
    	res := make([]*E, 0, len(s))
    	for _, v := range s {
    		v := v
    		res = append(res, &v)
    	}
    	return res
    }
    
    // Dereference returns all non-nil references, dereferenced
    func Dereference[E any](s []*E) []E {
    	res := make([]E, 0, len(s))
    	for _, v := range s {
    		if v != nil {
    			res = append(res, *v)
    		}
    	}
    	return res
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 06:28:11 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  2. src/net/http/responsecontroller_test.go

    			t.Errorf("ctl.Flush() = %v, want nil", err)
    			return
    		}
    		<-continuec
    		w.Write([]byte("two"))
    	}))
    
    	res, err := cst.c.Get(cst.ts.URL)
    	if err != nil {
    		t.Fatalf("unexpected connection error: %v", err)
    	}
    	defer res.Body.Close()
    
    	buf := make([]byte, 16)
    	n, err := res.Body.Read(buf)
    	close(continuec)
    	if err != nil || string(buf[:n]) != "one" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 19:20:31 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. src/net/http/filetransport.go

    	}
    	pr.sentResponse = true
    
    	if pr.hasContent {
    		pr.res.ContentLength = -1
    	}
    	pr.ch <- pr.res
    }
    
    func (pr *populateResponse) Header() Header {
    	return pr.res.Header
    }
    
    func (pr *populateResponse) WriteHeader(code int) {
    	if pr.wroteHeader {
    		return
    	}
    	pr.wroteHeader = true
    
    	pr.res.StatusCode = code
    	pr.res.Status = fmt.Sprintf("%d %s", code, StatusText(code))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/it/admin/SuggestTests.java

            String response = checkGetMethod(searchBody, "").asString();
            final Map<String, Object> res = JsonPath.from(response).getMap("response.setting");
            assertTrue(res.containsKey("total_words_num"));
            assertTrue(res.containsKey("document_words_num"));
            assertTrue(res.containsKey("query_words_num"));
            assertEquals(new Integer(0), JsonPath.from(response).get("response.status"));
        }
    
    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. src/net/http/httptest/server_test.go

    		w.Write([]byte("hello"))
    	}))
    
    	res, err := http.Get(ts.URL)
    	if err != nil {
    		t.Fatal(err)
    	}
    	got, err := io.ReadAll(res.Body)
    	res.Body.Close()
    	if err != nil {
    		t.Fatal(err)
    	}
    	if string(got) != "hello" {
    		t.Fatalf("got %q, want hello", string(got))
    	}
    
    	ts.Close()
    
    	res, err = http.Get(ts.URL)
    	if err == nil {
    		body, _ := io.ReadAll(res.Body)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 16:57:12 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  6. pilot/pkg/serviceregistry/kube/controller/ambient/services.go

    func getVIPs(svc *v1.Service) []string {
    	res := []string{}
    	if svc.Spec.ClusterIP != "" && svc.Spec.ClusterIP != v1.ClusterIPNone {
    		res = append(res, svc.Spec.ClusterIP)
    	}
    	for _, ing := range svc.Status.LoadBalancer.Ingress {
    		// IPs are strictly optional for loadbalancers - they may just have a hostname.
    		if ing.IP != "" {
    			res = append(res, ing.IP)
    		}
    	}
    	return res
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 12:29:55 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. src/net/http/fs_test.go

    				req.Header.Set(k, v)
    			}
    
    			c := ts.Client()
    			res, err := c.Do(req)
    			if err != nil {
    				t.Fatal(err)
    			}
    			io.Copy(io.Discard, res.Body)
    			res.Body.Close()
    			if res.StatusCode != tt.wantStatus {
    				t.Errorf("test %q using %q: got status = %d; want %d", testName, method, res.StatusCode, tt.wantStatus)
    			}
    			if g, e := res.Header.Get("Content-Type"), tt.wantContentType; g != e {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  8. pilot/pkg/status/distribution/reporter.go

    // only the resources we expect to be in flight, not the ones that have already distributed
    func (r *Reporter) AddInProgressResource(res config.Config) {
    	tryLedgerPut(r.ledger, res)
    	myRes := status.ResourceFromModelConfig(res)
    	if myRes == (status.Resource{}) {
    		scope.Errorf("Unable to locate schema for %v, will not update status.", res)
    		return
    	}
    	r.mu.Lock()
    	defer r.mu.Unlock()
    	r.inProgressResources[myRes.ToModelKey()] = &inProgressEntry{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jan 30 17:25:17 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/sets/set.go

    func List[T cmp.Ordered](s Set[T]) []T {
    	res := make(sortableSliceOfGeneric[T], 0, len(s))
    	for key := range s {
    		res = append(res, key)
    	}
    	sort.Sort(res)
    	return res
    }
    
    // UnsortedList returns the slice with contents in random order.
    func (s Set[T]) UnsortedList() []T {
    	res := make([]T, 0, len(s))
    	for key := range s {
    		res = append(res, key)
    	}
    	return res
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 19:51:18 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. pilot/pkg/xds/xdsgen.go

    			TypeUrl:       w.TypeUrl,
    			ResourceNames: req.Delta.Subscribed.UnsortedList(),
    		}
    	}
    	res, logdata, err := gen.Generate(con.proxy, w, req)
    	info := ""
    	if len(logdata.AdditionalInfo) > 0 {
    		info = " " + logdata.AdditionalInfo
    	}
    	if len(logFiltered) > 0 {
    		info += logFiltered
    	}
    	if err != nil || res == nil {
    		// If we have nothing to send, report that we got an ACK for this version.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 20:55:20 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top