Skip to content

Commit

Permalink
tm: docs for t_reply_error() function
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Nov 2, 2023
1 parent ae0b671 commit f898160
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/modules/tm/doc/functions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,27 @@ t_reply("404", "Not found");
</example>
</section>

<section id="tm.f.t_reply_error">
<title>
<function>t_reply_error()</function>
</title>
<para>
Sends a stateful reply based in internal error code, similar to
sl_send_error() from sl module.
</para>
<para>
This function can be used from REQUEST_ROUTE.
</para>
<example>
<title><function>t_reply_error</function> usage</title>
<programlisting>
...
t_reply_error();
...
</programlisting>
</example>
</section>

<section id="tm.f.t_send_reply">
<title>
<function>t_send_reply(code, reason)</function>
Expand Down

0 comments on commit f898160

Please sign in to comment.