mix ash_hooks.install (AshHooks v1.0.1)

Copy Markdown View Source

Installs ash_hooks into a host application:

  • adds :ash_hooks to .formatter.exs import_deps (DSL formatting);
  • patches the endpoint's Plug.Parsers with body_reader: {AshHooks.BodyReader, :read_body, []} so inbound verification sees the raw pre-parser bytes (a router plug CANNOT capture them — see docs/adr).

Usage

mix igniter.install ash_hooks