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