aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2020-03-25 12:01:51 +0100
committerLoïc Hoguin <[email protected]>2020-03-25 12:01:51 +0100
commite433fafcd5e98ba06536dcc48c1049c72243b1cd (patch)
tree0d9c8204f806db225f5f60e5f2c4adcef4e1bb2e /doc
parent2eaf28d3876c1ebcbf31d843e77f809e0c25aefb (diff)
downloadgun-e433fafcd5e98ba06536dcc48c1049c72243b1cd.tar.gz
gun-e433fafcd5e98ba06536dcc48c1049c72243b1cd.tar.bz2
gun-e433fafcd5e98ba06536dcc48c1049c72243b1cd.zip
Update migration guide
Diffstat (limited to 'doc')
-rw-r--r--doc/src/guide/migrating_from_1.3.asciidoc32
1 files changed, 30 insertions, 2 deletions
diff --git a/doc/src/guide/migrating_from_1.3.asciidoc b/doc/src/guide/migrating_from_1.3.asciidoc
index ea7323d..a20a058 100644
--- a/doc/src/guide/migrating_from_1.3.asciidoc
+++ b/doc/src/guide/migrating_from_1.3.asciidoc
@@ -23,6 +23,17 @@ Gun 2.0 requires Erlang/OTP 22.0 or greater.
=== Features added
+* Cookie store support has been added. The `cookie_store`
+ option allows configuring the cookie store backend.
+ The `gun_cookies` module provides functions to help
+ implementing such a backend. Gun comes with the backend
+ `gun_cookies_list` which provides a per-connection,
+ non-persistent cookie store. The cookie store engine
+ implements the entire RFC6265bis draft algorithms except
+ the parts about non-HTTP cookies as no such interface is
+ provided; and the parts about SameSite as Gun has no
+ concept of "browsing context".
+
* Graceful shutdown has been implemented. Graceful shutdown
can be initiated on the client side by calling the new
function `gun:shutdown/1` or when the owner process goes
@@ -76,8 +87,7 @@ Gun 2.0 requires Erlang/OTP 22.0 or greater.
for any sort of protocols. This can also be useful
when performing HTTP/1.1 Upgrade to custom protocols.
-* Headers can now be provided as a map. Header names may now
- be provided as binary, string or atom.
+* Headers can now be provided as a map.
* Header names may now be provided as binary, string or atom.
@@ -218,3 +228,21 @@ Gun 2.0 requires Erlang/OTP 22.0 or greater.
* An invalid stream reference was sent on failed Websocket
upgrade responses. This has been corrected.
+
+* HTTP/2 connection preface errors are now properly detected
+ and propagated in the `gun_down` message to the connection
+ owner as well as the exit reason of the Gun process.
+
+* HTTP/2 connection preface errors now provide a different
+ human readable error when the data received looks like an
+ HTTP/1.x response.
+
+* HTTP/2 connection errors were missing the human readable
+ reason in the `gun_error` message. This has been corrected.
+
+* Fix the host and :authority (pseudo-)headers when connecting
+ to an IPv6 address given as a tuple. They were lacking the
+ surrounding brackets.
+
+* Fix a crash in gun:info/1 when the socket was closed before
+ we call Transport:sockname/1.