Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: renumber

...

The only change, beyond removing references to the rid_to_gen, has been to replace the single action that fetches, compiles, and registers the generated ruleset with a sequence of actions.

The action in line 10 9 does the compiling and registering as before.

In line 1110, we use the engine:installRuleset action to install the new ruleset (identified by its rid) into the child pico.

Then, in line 1211, we use http:get (as an action) to invoke the result function in the generated ruleset newly installed in the child pico. This action returns the HTTP response, which we bind to the name res (using the action's setting clause).

Line 13 12 uses the special name _txt in a send_directive action to provide some content, specifically the content portion of the HTTP response. We just assume it was successful.

Finally, we do some cleanup. Line 14 13 uninstalls the ruleset from the child pico, so that line 15 14 can unregister the generated ruleset from the engine. And, in the postlude (lines 1716-1918) we raise the wrangler event "child_deletion" (line 1817) so that the child pico will be removed.

...