Skip to content

Commit 68cad02

Browse files
committed
Merge branch 'michal/diameter/add-documentation-about-proxy-and-resend/OTP-19768' into maint
* michal/diameter/add-documentation-about-proxy-and-resend/OTP-19768: Add documentation about proxy and resend return values
2 parents d7434b1 + 6a96fec commit 68cad02

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/diameter/src/base/diameter_app.erl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,15 @@ The semantics of each of the possible return values are as follows.
179179
return value (for example, from a `c:handle_error/4` callback) causes the
180180
request to be answered with 3002 (DIAMETER_UNABLE_TO_DELIVER).
181181

182+
This return value can be used only in relay applications
183+
(Application identifier = 0xFFFFFFFF).
184+
185+
- **`{proxy, Opts}`** - Like `relay` but can only be used in applications other
186+
then the relay application.
187+
188+
- **`{resend, Opts}`** - Neutral alternative to `relay` and `proxy` that can be
189+
used in any application.
190+
182191
- **`discard`** - Discard the request. No answer message is sent to the peer.
183192

184193
- **`{eval, Action, PostF}`** - Handle the request as if `Action` has been

0 commit comments

Comments
 (0)