http2 - ghdrako/doc_snipets GitHub Wiki
Similarities
All methods , staus code, request/response bodies, and headers are the same
W naglowku dodano
-authority: <host addrres>
Difference
HTTP/2 is faster because:
- transfer data in binary format ( harder to tcpdump and debug)
- headres are compressed
- multiple request can be sent on the same connection at the time. In HTTP/1.1 request-response and in HTTP/2 request1,request2 - response2,response1