Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 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. 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)
  3. 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)
  4. security/pkg/k8s/chiron/utils_test.go

    	server1 := newMockTLSServer(t)
    	defer server1.httpServer.Close()
    	server2 := newMockTLSServer(t)
    	defer server2.httpServer.Close()
    
    	host := "127.0.0.1"
    	port1, err := getServerPort(server1.httpServer)
    	if err != nil {
    		t.Fatalf("error to get the server 1 port: %v", err)
    	}
    	port2, err := getServerPort(server2.httpServer)
    	if err != nil {
    		t.Fatalf("error to get the server 2 port: %v", err)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 03:58:11 UTC 2024
    - 13K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/BlockingHttpServer.java

     * limitations under the License.
     */
    package org.gradle.test.fixtures.server.http;
    
    import com.sun.net.httpserver.BasicAuthenticator;
    import com.sun.net.httpserver.HttpContext;
    import com.sun.net.httpserver.HttpExchange;
    import com.sun.net.httpserver.HttpServer;
    import org.gradle.api.Action;
    import org.gradle.internal.ErroringAction;
    import org.gradle.internal.work.WorkerLeaseService;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  6. platforms/software/resources-gcs/src/integTest/groovy/org/gradle/integtests/resource/gcs/fixtures/GcsServer.groovy

                        response.outputStream.bytes = httpStub.response.body.call()
                    }
                }
            }
        }
    
        private void add(HttpStub httpStub, HttpServer.ActionSupport action) {
            HttpServer.HttpExpectOne expectation = new HttpServer.HttpExpectOne(action, [httpStub.request.method], httpStub.request.path)
            expectations << expectation
            addHandler(new AbstractHandler() {
                @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 16.7K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheIvyPublishIntegrationTest.groovy

    import org.gradle.test.fixtures.ivy.IvyRepository
    import org.gradle.test.fixtures.server.http.HttpServer
    import org.gradle.test.fixtures.server.http.IvyHttpRepository
    import org.gradle.util.internal.GUtil
    import org.junit.Rule
    
    import static org.gradle.test.fixtures.server.http.HttpServer.SupportedHash.*
    import static org.gradle.util.internal.GFileUtils.deleteDirectory
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. platforms/software/resources-s3/src/integTest/groovy/org/gradle/integtests/resource/s3/fixtures/S3Server.groovy

                        response.outputStream.bytes = httpStub.response.body.call()
                    }
                }
            }
        }
    
        private void add(HttpStub httpStub, HttpServer.ActionSupport action) {
            HttpServer.HttpExpectOne expectation = new HttpServer.HttpExpectOne(action, [httpStub.request.method], httpStub.request.path)
            expectations << expectation
            addHandler(new AbstractHandler() {
                @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 22.4K bytes
    - Viewed (0)
  9. platforms/software/maven/src/integTest/groovy/org/gradle/api/publish/maven/MavenPublishHttpIntegTest.groovy

    import org.gradle.test.fixtures.server.http.HttpServer
    import org.gradle.test.fixtures.server.http.MavenHttpModule
    import org.gradle.test.fixtures.server.http.MavenHttpRepository
    import org.junit.Rule
    import spock.lang.Issue
    
    class MavenPublishHttpIntegTest extends AbstractMavenPublishIntegTest {
    
        @Rule
        HttpServer server
        @Rule
        HttpServer redirectServer
    
        final String repoPath = "/repo"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  10. samples/extauthz/cmd/extauthz/main.go

    		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 *ExtAuthzServer) run(httpAddr, grpcAddr string) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 15 18:23:48 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top