Return handler

Purpose: Return from current request handler back to its caller.

 return-handler

Returns from current request handler by transferring control back to its caller. If the current request handler was called from an outside caller (such as web browser, API, command line etc.), then return-handler is equivalent to exit-handler. If the current request handler was called from another request handler with call-handler, then control transfers back to that handler immediately after call-handler.
Examples
In this example, "req-handler" (the caller) will call "other-handler" (the callee), which will return to the caller (immediately after call-handler). Here's the caller:
 begin-handler /req-handler public
     ...
     call-handler other-handler
     ...
 end-handler

The callee handler:
 begin-handler /other-handler public
     ...
     return-handler
     ...
 end-handler

See also
Program flow
break-loop  
code-blocks  
continue-loop  
do-once  
exit-handler  
if-defined  
if-true  
return-handler  
set-bool  
start-loop  
See all
documentation


Copyright (c) 2019-2025 Gliim LLC. All contents on this web site is "AS IS" without warranties or guarantees of any kind.