This is directly taken from this post
- Install cURL with nghttp2 support
brew install curl --with-nghttp2
- Link the formula to replace the system cURL
brew link curl --force
- Reload shell
- Test an HTTP/2 request passing the --http2 flag
curl -I --http2 https://www.google.com/