Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 119 for http2server (0.17 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/HttpsServer.java

    import okhttp3.mockwebserver.MockWebServer;
    import okhttp3.tls.HandshakeCertificates;
    import okhttp3.tls.HeldCertificate;
    
    /**
     * Create an HTTPS server with a self-signed certificate that OkHttp trusts.
     */
    public class HttpsServer {
      public void run() throws Exception {
        HeldCertificate localhostCertificate = new HeldCertificate.Builder()
            .addSubjectAlternativeName("localhost")
            .build();
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 02 14:04:37 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. 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)
  3. cmd/update_test.go

    func TestDownloadReleaseData(t *testing.T) {
    	httpServer1 := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {}))
    	defer httpServer1.Close()
    	httpServer2 := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		fmt.Fprintln(w, "fbe246edbd382902db9a4035df7dce8cb441357d minio.RELEASE.2016-10-07T01-16-39Z")
    	}))
    	defer httpServer2.Close()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Mar 09 03:07:08 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/BlockingHttpsServer.java

         */
        public void configure(TestKeyStore testKeyStore, boolean needClientAuth, Predicate<String> tlsProtocolFilter) {
            HttpsServer httpsServer = (HttpsServer) this.server;
            SSLContext context = testKeyStore.asServerSSLContext();
            httpsServer.setHttpsConfigurator(new HttpsConfigurator(context) {
                @Override
                public void configure(HttpsParameters params) {
                    SSLContext c = getSSLContext();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. pkg/proxy/healthcheck/service_health.go

    	nsn  types.NamespacedName
    	port uint16
    
    	httpServers []httpServer
    
    	endpoints int // number of local endpoints for a service
    }
    
    // listenAll opens health check port on all the addresses provided
    func (hcI *hcInstance) listenAndServeAll(hcs *server) error {
    	var err error
    	var listener net.Listener
    
    	hcI.httpServers = make([]httpServer, 0, len(hcs.nodeIPs))
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 30 09:25:48 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  6. pilot/pkg/bootstrap/server.go

    		// use ReadHeaderTimeout instead of ReadTimeout.
    		s.httpServer.ReadTimeout = 0
    		s.httpServer.ReadHeaderTimeout = 30 * time.Second
    		s.httpServer.Handler = multiplexHandler
    	}
    
    	if args.ServerOptions.MonitoringAddr == "" {
    		s.monitoringMux = s.httpMux
    		log.Infof("initializing Istiod admin server multiplexed on httpAddr %v", s.httpServer.Addr)
    	} else {
    		log.Info("initializing Istiod admin server")
    	}
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 46.3K bytes
    - Viewed (0)
  7. platforms/software/resources-http/src/test/groovy/org/gradle/internal/resource/transport/http/HttpClientHelperTimeoutTest.groovy

        @Rule HttpServer httpServer = new HttpServer()
        @Subject HttpClientHelper client = new HttpClientHelper(new DocumentationRegistry(), httpSettings)
    
        def "throws exception if socket timeout is reached"() {
            given:
            httpServer.expectGetBlocking("/")
            httpServer.start()
    
            when:
            client.performRequest(new HttpGet("${httpServer.uri}/"), false)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  8. platforms/software/resources-http/src/integTest/groovy/org/gradle/internal/resource/transport/http/CookieHeaderTest.groovy

    import org.gradle.internal.logging.ConfigureLogging
    import org.gradle.test.fixtures.server.http.HttpServer
    import org.junit.Rule
    import spock.lang.Specification
    
    import javax.servlet.http.HttpServletRequest
    import javax.servlet.http.HttpServletResponse
    
    class CookieHeaderTest extends Specification {
    
        @Rule
        HttpServer httpServer = new HttpServer()
        CollectingTestOutputEventListener listener = new CollectingTestOutputEventListener()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  9. platforms/software/version-control/src/integTest/groovy/org/gradle/vcs/internal/ParallelSourceDependencyIntegrationTest.groovy

    import org.junit.Rule
    
    class ParallelSourceDependencyIntegrationTest extends AbstractIntegrationSpec {
        @Rule BlockingHttpServer httpServer = new BlockingHttpServer()
        @Rule GitHttpRepository repo = new GitHttpRepository(httpServer, "test", temporaryFolder.getTestDirectory())
    
        def setup() {
            httpServer.start()
    
            settingsFile << """
                rootProject.name = 'consumer'
                gradle.rootProject {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  10. 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)
Back to top