Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for HttpServer (0.15 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/HttpServer.groovy

     */
    class HttpServer extends ServerWithExpectations implements HttpServerFixture {
    
        private final static Logger logger = LoggerFactory.getLogger(HttpServer.class)
    
        protected Matcher expectedUserAgent = null
    
        List<ServerExpectation> expectations = []
    
        boolean chunkedTransfer = false
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/HttpArtifact.groovy

            expectPut(credentials)
            if (server.supportsHash(HttpServer.SupportedHash.SHA1)) {
                sha1.expectPut(credentials)
            }
            if (extraChecksums) {
                if (server.supportsHash(HttpServer.SupportedHash.SHA256)) {
                    sha256.expectPut(credentials)
                }
                if (server.supportsHash(HttpServer.SupportedHash.SHA512)) {
                    sha512.expectPut(credentials)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. platforms/enterprise/enterprise/src/integTest/groovy/org/gradle/internal/enterprise/GradleEnterprisePluginBackgroundJobExecutorsIntegrationTest.groovy

            httpServer.start()
    
            given:
            buildFile << """
                def executors = $executors
    
                task check {
                    doLast {
                        executors.userJobExecutor.execute {
                            ${httpServer.callFromBuild("background")}
                        }
                        ${httpServer.callFromBuild("task.action")}
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 29 16:27:53 UTC 2024
    - 7K bytes
    - Viewed (0)
  4. platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/WrapperGenerationIntegrationTest.groovy

            }
        }
    
        @Rule
        HttpServer httpServer = new HttpServer()
    
        @Requires(IntegTestPreconditions.NotEmbeddedExecutor)
        def "wrapper task fails if http distribution url from command-line is invalid"() {
            given:
            def path = "/distributions/8.0-RC-5"
            httpServer.start()
            httpServer.expectHeadMissing(path)
            def url = "${httpServer.uri}" + path
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:38 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  5. samples/jwt-server/src/main.go

    	if err != nil {
    		log.Fatalf("Failed to create HTTP server: %v", err)
    	}
    	// Store the port for test only.
    	s.httpPort <- listener.Addr().(*net.TCPAddr).Port
    	s.httpServer = &http.Server{Handler: s}
    
    	log.Printf("Starting HTTP server at %s", listener.Addr())
    	if err := s.httpServer.Serve(listener); err != nil {
    		log.Fatalf("Failed to start HTTP server: %v", err)
    	}
    }
    
    func (s *JWTServer) startHTTPS(address string, wg *sync.WaitGroup) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 16 23:56:50 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/BasicHttpResource.groovy

    import org.gradle.test.fixtures.file.TestFile
    
    class BasicHttpResource extends HttpResource {
        private final String path
        private final TestFile file
    
        BasicHttpResource(HttpServer httpServer, TestFile file, String path) {
            super(httpServer)
            this.file = file
            this.path = path
        }
    
        @Override
        TestFile getFile() {
            return file
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  7. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/ScalaConcurrencyIntegrationTest.groovy

        @Rule BlockingHttpServer httpServer = new BlockingHttpServer()
    
        @Issue("https://github.com/gradle/gradle/issues/14434")
        def "can run tests in parallel with project dependencies"() {
            given:
            httpServer.expectConcurrent(':a:test', ':b:test', ':c:test', ':d:test')
            httpServer.start()
    
            settingsFile << """
                include 'a', 'b', 'c', 'd'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 16:10:12 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  8. platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheServiceTest.groovy

            426, // Upgrade required
            HttpStatus.SC_HTTP_VERSION_NOT_SUPPORTED,
            511 // network authentication required
        ]
    
        @Rule
        HttpServer server = new HttpServer()
        @Rule
        TestNameTestDirectoryProvider tempDir = new TestNameTestDirectoryProvider(getClass())
    
        BuildCacheServiceFactory.Describer buildCacheDescriber
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 16:15:24 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/MetaDataArtifact.groovy

    class MetaDataArtifact extends HttpArtifact implements RootMavenMetaData {
        MavenFileModule backingModule
    
        MetaDataArtifact(HttpServer httpServer, String path, MavenFileModule backingModule) {
            super(httpServer, path)
            this.backingModule = backingModule
        }
    
        @Override
        TestFile getSha1File() {
            backingModule.getSha1File(file)
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/PomHttpArtifact.groovy

    import org.gradle.test.fixtures.maven.MavenFileModule
    
    class PomHttpArtifact extends HttpArtifact {
        MavenFileModule backingModule
    
        PomHttpArtifact(HttpServer httpServer, String path, MavenFileModule backingModule) {
            super(httpServer, path)
            this.backingModule = backingModule
        }
    
        @Override
        TestFile getSha1File() {
            backingModule.getSha1File(file)
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.5K bytes
    - Viewed (0)
Back to top