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

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type