Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ConflictsWith (0.22 sec)

  1. src/net/http/routing_index_test.go

    	var s []string
    	for _, p := range pats {
    		if pat.conflictsWith(p) {
    			s = append(s, p.String())
    		}
    	}
    	slices.Sort(s)
    	return s
    }
    
    func indexConflicts(pat *pattern, idx *routingIndex) []string {
    	var s []string
    	idx.possiblyConflictingPatterns(pat, func(p *pattern) error {
    		if pat.conflictsWith(p) {
    			s = append(s, p.String())
    		}
    		return nil
    	})
    	slices.Sort(s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. src/net/http/pattern_test.go

    		pat2 := mustParsePattern(t, test.p2)
    		got := pat1.conflictsWith(pat2)
    		if got != test.want {
    			t.Errorf("%q.ConflictsWith(%q) = %t, want %t",
    				test.p1, test.p2, got, test.want)
    		}
    		// conflictsWith should be commutative.
    		got = pat2.conflictsWith(pat1)
    		if got != test.want {
    			t.Errorf("%q.ConflictsWith(%q) = %t, want %t",
    				test.p2, test.p1, got, test.want)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 16:36:30 UTC 2024
    - 15K bytes
    - Viewed (0)
  3. src/net/http/pattern.go

    	disjoint     relationship = "disjoint"     // there is no request that both match
    	overlaps     relationship = "overlaps"     // there is a request that both match, but neither is more specific
    )
    
    // conflictsWith reports whether p1 conflicts with p2, that is, whether
    // there is a request that both match but where neither is higher precedence
    // than the other.
    //
    //	Precedence is defined by two rules:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 16:36:30 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/listener.go

    		len(chain.applicationProtocols) == 0 &&
    		len(chain.transportProtocol) == 0 &&
    		len(chain.destinationCIDRs) == 0
    }
    
    func (chain *filterChainOpts) conflictsWith(other *filterChainOpts) bool {
    	a, b := chain, other
    	if a == nil || b == nil {
    		return a == b
    	}
    	if a.transportProtocol != b.transportProtocol {
    		return false
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 04:44:06 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  5. src/net/http/server.go

    	}
    
    	mux.mu.Lock()
    	defer mux.mu.Unlock()
    	// Check for conflict.
    	if err := mux.index.possiblyConflictingPatterns(pat, func(pat2 *pattern) error {
    		if pat.conflictsWith(pat2) {
    			d := describeConflict(pat, pat2)
    			return fmt.Errorf("pattern %q (registered at %s) conflicts with pattern %q (registered at %s):\n%s",
    				pat, pat.loc, pat2, pat2.loc, d)
    		}
    		return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
Back to top