Enable HTTP/2 On Chrome

There are several interesting switches I have located in the Chromium/Chrome code lately:

  • // Disable SPDY/3.1. This is a temporary testing flag.
    const char kDisableSpdy31[]                 = "disable-spdy31";
    
  • // Enable SPDY/4, aka HTTP/2. This is a temporary testing flag.
    const char kEnableSpdy4[]                   = "enable-spdy4";
    
  • // Uses WebSocket over SPDY.
    const char kEnableWebSocketOverSpdy[]       = "enable-websocket-over-spdy";
    
  • // Uses Spdy for the transport protocol instead of HTTP. This is a temporary
    // testing flag.
    const char kUseSpdy[]                       = "use-spdy";
    

If you would like to give HTTP/2 a go, you are welcome to use those switches by adding a prefix of --, in that orderly fashion:

C:\Users\Elad\AppData\Local\Chromium\Application\chrome.exe --disable-spdy31 --enable-spdy4 --enable-websocket-over-spdy --use-spdy

Assuming your name is Elad too ;)

Leave a Reply