slash v2.0.0-rc.7 Slash.BodyReader View Source
Custom Plug.Parsers body
reader to support the custom Slash.Signature
verification process.
This must be configured for your application when using Slash!
Example
plug Plug.Parsers,
parsers: [:urlencoded],
body_reader: {Slash.BodyReader, :read_body, []}
Link to this section Summary
Functions
Custom Plug.Conn.read_body/2
implementation to put the raw request body into a private conn
field for usage during the signature verification process
Link to this section Functions
Link to this function
read_body(conn, opts)
View Source
read_body(conn, opts)
View Source
read_body(Plug.Conn.t(), keyword()) :: {:ok, binary(), Plug.Conn.t()}
read_body(Plug.Conn.t(), keyword()) :: {:ok, binary(), Plug.Conn.t()}
Custom Plug.Conn.read_body/2
implementation to put the raw request body into a private conn
field for usage during the signature verification process.