Shapt v0.0.2 Shapt.Plug View Source

This plug provides two endpoints:

  • GET that will that will return the current value of your toggles on runtime.
  • POST that will reload the current value of your toggles on runtime.

Those features work better when you're caching values on ets with the ets_cache option set as true. This can be configured with the options path and modules, like the example:

plug(Shapt.Plug, path: "/toggles", modules: [TestModule])

Link to this section Summary

Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.

Link to this section Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.