call-handler <request path>
Copied!
%% /callsub public // // First call to call-handler // // Set input for call-handler set-param inp = "some string" (( s call-handler "/sub/service" )) // Get output from call-handler get-param out type string @<<p-out s>> with output [<<p-out out>>] // // Second call to call-handler // // Set input for call-handler called as inline code set-param inp = "new string" (( s @Output: <<call-handler "/sub/service">> )) // Get output from call-handler get-param out type string @<<p-out s>> with output [<<p-out out>>] %%Copied!
%% /sub/service private @This is sub! get-param inp (( out @got input: <<p-out inp>> )) set-param out = out %%Copied!
sudo mgrg -i -u $(whoami) subhandler gg -qCopied!
gg -r --req="/callsub" --exec --silent-headerCopied!
This is sub! with output [got input: some string] Output: This is sub! with output [got input: new string]Copied!