Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular8 use http2

I'm trying to use http2 in my angular application. So I searched and found this chrome plugin https://chrome.google.com/webstore/detail/http2-and-spdy-indicator/mpbpobfflnpcgagjijhmgnchggcjblin?hl=en . It indicates my site doesn't support http2. I did search on google and on official angular page and didn't found any documentation. How can I make my angular app to support http2? So far I'm using HttpClient. Thank you.

like image 775
e.k Avatar asked Sep 07 '26 23:09

e.k


1 Answers

Your Angular app does not need to support HTTP/2, your web browser and server need to support this. When that happens the Angular app will automatically use it as the browser will translate any HttpClient calls to HTTP/2 automatically.

like image 166
Barry Pollard Avatar answered Sep 10 '26 15:09

Barry Pollard