From 00cc1f385f94823a0684deee001b643091e235b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 26 Sep 2019 13:16:56 +0200 Subject: Add reply_to option to ws_upgrade; remove notowner entirely The reply_to option is also propagated when we switch protocols. --- doc/src/guide/connect.asciidoc | 4 ++-- doc/src/guide/http.asciidoc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/src/guide') diff --git a/doc/src/guide/connect.asciidoc b/doc/src/guide/connect.asciidoc index a2c0a28..08f8db2 100644 --- a/doc/src/guide/connect.asciidoc +++ b/doc/src/guide/connect.asciidoc @@ -16,10 +16,10 @@ a remote endpoint. This Gun connection is owned by a user process that is called the _owner_ of the connection, and is managed by the supervision tree of the `gun` application. -The owner process communicates with the Gun connection +Any process can communicate with the Gun connection by calling functions from the module `gun`. All functions perform their respective operations asynchronously. The Gun -connection will send Erlang messages to the owner process +connection will send Erlang messages to the calling process whenever needed. When the remote endpoint closes the connection, Gun attempts diff --git a/doc/src/guide/http.asciidoc b/doc/src/guide/http.asciidoc index 382b245..51cb994 100644 --- a/doc/src/guide/http.asciidoc +++ b/doc/src/guide/http.asciidoc @@ -15,7 +15,7 @@ Stream references use the Erlang _reference_ data type and are therefore unique. Streams can be canceled at any time. This will stop any further -messages from being sent to the owner process. Depending on +messages from being sent to the calling process. Depending on its capabilities, the server will also be instructed to cancel the request. @@ -233,7 +233,7 @@ gun:request(ConnPid, "TRACE", "/", [ === Processing responses -All data received from the server is sent to the owner +All data received from the server is sent to the calling process as a message. First a `gun_response` message is sent, followed by zero or more `gun_data` messages. If something goes wrong, a `gun_error` message is sent instead. -- cgit v1.2.3