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



Popular posts from this blog

Solving Sonarqube :- Project was never analyzed. A regular analysis is required before a branch analysis

spark - pyspark reading from excel files