Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for safeUrl (0.14 sec)

  1. platforms/core-runtime/wrapper-shared/src/main/java/org/gradle/wrapper/Download.java

            }
        }
    
        public void sendHeadRequest(URI uri) throws Exception {
            URL safeUrl = safeUri(uri).toURL();
            int responseCode = -1;
            try {
                HttpURLConnection conn = (HttpURLConnection)safeUrl.openConnection();
                conn.setRequestMethod("HEAD");
                addBasicAuthentication(uri, conn);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/GradleKotlinDslIntegrationTest.kt

                """
            )
    
            MockWebServer().use { server ->
    
                server.enqueue(MockResponse().setBody(remoteScript))
                server.start()
    
                val remoteScriptUrl = server.safeUrl("/remote.gradle.kts")
    
                withBuildScript(
                    """
                    apply(from = "$remoteScriptUrl")
                    val answer: String by extra
                    println("*" + answer + "*")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 18:26:28 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  3. platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheConfigurationBuildOperationIntegrationTest.groovy

            given:
            httpBuildCacheServer.start()
            def safeUri = httpBuildCacheServer.uri
            def basicAuthUri = new URI(safeUri.getScheme(), 'user:pwd', safeUri.getHost(), safeUri.getPort(), safeUri.getPath(), safeUri.getQuery(), safeUri.getFragment())
            settingsFile << """
                buildCache {
                    remote(org.gradle.caching.http.HttpBuildCache) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 6K bytes
    - Viewed (0)
  4. platforms/core-execution/build-cache-http/src/main/java/org/gradle/caching/http/internal/HttpBuildCacheService.java

                if (LOGGER.isDebugEnabled()) {
                    LOGGER.debug("Response for PUT {}: {}", safeUri(uri), statusLine);
                }
                int statusCode = statusLine.getStatusCode();
                if (!isHttpSuccess(statusCode)) {
                    String defaultMessage = String.format("Storing entry at '%s' response status %d: %s", safeUri(uri), statusCode, statusLine.getReasonPhrase());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 04 14:13:12 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. platforms/core-runtime/wrapper-shared/src/main/java/org/gradle/wrapper/Install.java

    import static java.lang.String.format;
    import static java.util.Collections.emptyList;
    import static org.gradle.internal.file.PathTraversalChecker.safePathName;
    import static org.gradle.wrapper.Download.safeUri;
    
    public class Install {
        public static final String DEFAULT_DISTRIBUTION_PATH = "wrapper/dists";
        public static final String SHA_256 = ".sha256";
        public static final int RETRIES = 3;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  6. src/cmd/go/internal/work/security.go

    			}
    		}
    		for _, x := range validNext {
    			if arg == x {
    				if i+1 < len(list) && load.SafeArg(list[i+1]) {
    					i++
    					continue Args
    				}
    
    				// Permit -Wl,-framework -Wl,name.
    				if i+1 < len(list) &&
    					strings.HasPrefix(arg, "-Wl,") &&
    					strings.HasPrefix(list[i+1], "-Wl,") &&
    					load.SafeArg(list[i+1][4:]) &&
    					!strings.Contains(list[i+1][4:], ",") {
    					i++
    					continue Args
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:47:34 UTC 2024
    - 10K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/noder/noder.go

    }
    
    // safeArg reports whether arg is a "safe" command-line argument,
    // meaning that when it appears in a command-line, it probably
    // doesn't have some special meaning other than its own name.
    // This is copied from SafeArg in cmd/go/internal/load/pkg.go.
    func safeArg(name string) bool {
    	if name == "" {
    		return false
    	}
    	c := name[0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 11 20:40:57 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  8. platforms/core-runtime/wrapper-shared/src/main/java/org/gradle/wrapper/PathAssembler.java

            return new LocalDistribution(distDir, distZip);
        }
    
        private String rootDirName(String distName, WrapperConfiguration configuration) {
            String urlHash = getHash(Download.safeUri(configuration.getDistribution()).toASCIIString());
            return distName + "/" + urlHash;
        }
    
        /**
         * This method computes a hash of the provided {@code string}.
         * <p>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. manifests/charts/gateways/istio-ingress/NOTES.txt

    additional RBAC permissions.
    
    - simplified label and chart structure.
    - ability to run a pilot dedicated for the gateway, isolated from the main pilot. This is more robust, safer on upgrades
    and allows a bit more flexibility.
    - the dedicated pilot-per-ingress is required if the gateway needs to support k8s-style ingress.
    
    # Port and basic host configuration
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 15 21:29:06 UTC 2020
    - 2K bytes
    - Viewed (0)
  10. src/runtime/mpagecache.go

    	assertLockHeld(p.mheapLock)
    
    	if c.empty() {
    		return
    	}
    	ci := chunkIndex(c.base)
    	pi := chunkPageIndex(c.base)
    
    	// This method is called very infrequently, so just do the
    	// slower, safer thing by iterating over each bit individually.
    	for i := uint(0); i < 64; i++ {
    		if c.cache&(1<<i) != 0 {
    			p.chunkOf(ci).free1(pi + i)
    
    			// Update density statistics.
    			p.scav.index.free(ci, pi+i, 1)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 19 14:30:00 UTC 2023
    - 5.6K bytes
    - Viewed (0)
Back to top