With Raku/Sparrow this is just:
begin: machine api.mydomain.com :any: end: code: <<RAKU !raku for streams().value -> $s { say $s<>[0]<data>; say $s<>[1]<data>; } RAKU