Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Built-in actions #10

Open
draggett opened this issue Jun 23, 2020 · 0 comments
Open

Built-in actions #10

draggett opened this issue Jun 23, 2020 · 0 comments

Comments

@draggett
Copy link
Member

draggett commented Jun 23, 2020

Earlier versions of chunks use @do recall and @do remember, but these terms have multiple meanings in English. To avoid the potential for misunderstanding, and to benefit from a familiarity with HTTP, the names have been switched:

  • @do update to synchronously update the module buffer (this is the default action)
  • @do clear to synchronously clear the module buffer
  • @do get to request a matching chunk which is loaded into the module buffer
  • @do put to create a new chunk or overwrite one with the same ID
  • @do patch similar to put but only updates the properties passed in the action
  • @do delete delete matching chunks

In addition, you can use @status in a condition to check the status of the response to a previous request. It is set to pending, okay, forbidden, nomatch and failed as appropriate. To relate particular pairs of requests and responses, you can pass an identifier in an action with @tag and test for it with @tag in a subsequent rule condition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant