Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ConflictsWith (0.2 sec)

  1. 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)
  2. 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)
Back to top