Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ListenAndServeTLS (1 sec)

  1. src/net/http/server.go

    // of the server's certificate, any intermediates, and the CA's certificate.
    func ListenAndServeTLS(addr, certFile, keyFile string, handler Handler) error {
    	server := &Server{Addr: addr, Handler: handler}
    	return server.ListenAndServeTLS(certFile, keyFile)
    }
    
    // ListenAndServeTLS listens on the TCP network address srv.Addr and
    // then calls [ServeTLS] to handle requests on incoming TLS connections.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  2. src/net/http/serve_test.go

    			lnc <- ln
    		})
    		s = &Server{
    			Addr:      addr,
    			TLSConfig: tlsConf,
    		}
    		errc := make(chan error, 1)
    		go func() { errc <- s.ListenAndServeTLS("", "") }()
    		select {
    		case err := <-errc:
    			t.Logf("On try #%v: %v", try+1, err)
    			continue
    		case ln = <-lnc:
    			ok = true
    			t.Logf("Listening on %v", ln.Addr().String())
    			break Try
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
Back to top