- install cURL with nghttp2 support
brew install curl --with-nghttp2
- link the formula to replace the system cURL
brew link curl --force
- now reload the shell and test an HTTP/2 request passing the --http2 flag
curl -I --http2 https://www.cloudflare.com/