Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestTransportAutomaticHTTP2 (0.21 sec)

  1. src/net/http/server.go

    // setupHTTP2_ServeTLS because Serve is called after tls.Listen,
    // and may be called concurrently. See shouldConfigureHTTP2ForServe.
    //
    // The tests named TestTransportAutomaticHTTP2* and
    // TestConcurrentServerServe in server_test.go demonstrate some
    // of the supported use cases and motivations.
    func (srv *Server) setupHTTP2_Serve() error {
    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/transport_test.go

    			} else {
    				resp.Body.Close()
    				if resp.StatusCode != 400 {
    					t.Errorf("Expected status code 400, got %v", resp.Status)
    				}
    			}
    		}
    		return nil
    	})
    }
    
    func TestTransportAutomaticHTTP2(t *testing.T) {
    	testTransportAutoHTTP(t, &Transport{}, true)
    }
    
    func TestTransportAutomaticHTTP2_DialerAndTLSConfigSupportsHTTP2AndTLSConfig(t *testing.T) {
    	testTransportAutoHTTP(t, &Transport{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
Back to top