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