ExTwilioWebhook.BodyReader (ex_twilio_webhook v0.0.3)

Body reader module that allows you to parse the request while keeping its body at the same time.

Usage:

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

The original raw body can be found at conn.private[:raw_body].

Link to this section Summary

Link to this section Functions

Link to this function

read_body(conn, opts)