aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/manual/gun.await.asciidoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/manual/gun.await.asciidoc')
-rw-r--r--doc/src/manual/gun.await.asciidoc15
1 files changed, 8 insertions, 7 deletions
diff --git a/doc/src/manual/gun.await.asciidoc b/doc/src/manual/gun.await.asciidoc
index 21de953..09c244b 100644
--- a/doc/src/manual/gun.await.asciidoc
+++ b/doc/src/manual/gun.await.asciidoc
@@ -65,13 +65,14 @@ may also be returned when a timeout or an error occur.
[source,erlang]
----
Result :: {inform, Status, Headers}
- {response, IsFin, Status, Headers}
- {data, IsFin, Data}
- {trailers, Trailers}
- {push, NewStreamRef, Method, URI, Headers}
- {error, Reason}
-
-Reason :: timeout | any()
+ | {response, IsFin, Status, Headers}
+ | {data, IsFin, Data}
+ | {trailers, Trailers}
+ | {push, NewStreamRef, Method, URI, Headers}
+ | {error, Reason}
+
+Reason :: {stream_error | connection_error | down, any()}
+ | timeout
----
Because the messages and returned tuples are equivalent,