This is a local HTTP/2 test website which uses Google Chrome's simplehttp2server to run a local server.
- Make sure you don't have checked "Disable cache" in DEV Tools
- As of now, the
h2
protocol only works over a HTTPS connection - To see the response protocol in DEV Tools, right click the columns in the Network tab and enable
Protocol
Link:
header tags is NOT how you do push- Chrome Canary shows a "Push" initiator when receiving pushed assets
- Download the corresponding binary from their release page
- Open Terminal and navigate to the download folder
- Copy the binary from the download folder to the
/usr/local/bin
folder:cp simplehttp2server_darwin_amd64 /usr/local/bin/simplehttp2server
- Execute the command
chmod +x /usr/local/bin/simplehttp2server
- Restart Terminal or open a new tab
- Clone this repository in the desired folder (e.g.
$HOME/Sites
)git clone https://github.com/dirkpennings/http2
- Navigate to the newly created folder
cd http2
- Start your local server with
simplehttp2server
and navigate to https://localhost:5000 with your browser
- Download the corresponding binary from their release page
- Rename the executable
simplehttp2server_windows_amd64.exe
tosimplehttp2server.exe
- Move the executable to
C:\Windows\System32
(because this folder already exists in the PATH variable) - Open the command prompt and clone this repository in the desired folder (e.g.
C:\temp
)git clone https://github.com/dirkpennings/http2
- Navigate to the newly created folder
cd http2
- Start your local server with
simplehttp2server
(accept any Windows Security alerts) and navigate to https://localhost:5000 with your browser
Thanks go out to Surma for explaining some details about simplehttp2server