# `Codat.Webhooks.BodyReader`
[🔗](https://github.com/iamkanishka/codat.git/blob/v1.0.0/lib/codat/webhooks/plug.ex#L212)

A custom body reader for `Plug.Parsers` that preserves the raw request body
in `conn.private[:raw_body]` for webhook signature verification.

## Usage

    plug Plug.Parsers,
      parsers: [:urlencoded, :multipart, :json],
      pass: ["*/*"],
      body_reader: {Codat.Webhooks.BodyReader, :read_body, []},
      json_decoder: Jason

---

*Consult [api-reference.md](api-reference.md) for complete listing*
