From 1f8d51dd2692fc3978080419987bbe4d49a41a90 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= gun_response
message otherwise.
SPDY is a binary protocol based on HTTP, compatible with +
HTTP/2 is a binary protocol based on HTTP, compatible with the HTTP semantics, that reduces the complexity of parsing requests and responses, compresses the HTTP headers and allows the server to push multiple responses to a single request.
The SPDY interface is very similar to HTTP/1.1, so this +
The HTTP/2 interface is very similar to HTTP/1.1, so this section instead focuses on the differences in the interface for the two protocols.
Because a SPDY server can push multiple responses to a +
Because a HTTP/2 server can push multiple responses to a
single request, Gun might send gun_push
messages for
every push received. They can be ignored safely if they
are not needed.
The gun:cancel/2
function will use the SPDY stream
+
The gun:cancel/2
function will use the HTTP/2 stream
cancellation mechanism which allows Gun to inform the
server to stop sending a response for this particular
request, saving resources.
It is not possible to upgrade a SPDY connection to Websocket +
It is not possible to upgrade an HTTP/2 connection to Websocket due to protocol limitations.