Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for Req2 (0.04 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/RepositorySystemTest.java

            req1.setArtifact(new DefaultArtifact("ut.simple:artifact:1.0"));
            req1.addRepository(newTestRepository());
    
            ArtifactRequest req2 = new ArtifactRequest();
            req2.setArtifact(new DefaultArtifact("ut.simple:artifact:zip:1.0"));
            req2.addRepository(newTestRepository());
    
            ArtifactRequest req3 = new ArtifactRequest();
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 9.5K bytes
    - Click Count (0)
  2. internal/http/transports.go

    type uaTransport struct {
    	ua string
    	rt http.RoundTripper
    }
    
    func (u *uaTransport) RoundTrip(req *http.Request) (*http.Response, error) {
    	req2 := req.Clone(req.Context())
    	req2.Header.Set("User-Agent", u.ua)
    	return u.rt.RoundTrip(req2)
    }
    
    // WithUserAgent wraps an existing transport with custom User-Agent
    func WithUserAgent(rt http.RoundTripper, getUA func() string) http.RoundTripper {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 08 17:51:53 GMT 2025
    - 6.5K bytes
    - Click Count (0)
Back to Top