Print out the Plug connection object.


We can easily use IO.inspect to debug dump Plug conn object as shown in code below :-



def index(conn, _params) do
render conn, "index.html"

IO.inspect conn.req_headers
IO.inspect conn

end

Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm