Request body can't be read while obeying the Plug spec
Cantido opened this issue · 1 comments
Cantido commented
Describe the bug
Since the return type from handlers can only be a boolean or a map, there's no way for users to call Plug.Conn.read_body/2
without just dropping the returned conn, which the Plug.Conn
specs specifically say not to do.
Expected behavior
Either the raw body binary is made available in conn.assigns
, or some way to return the conn is allowed for.
Additional context
Plug.Conn.read_body/2