Can I manually build a conn
and then call them like a function? If you don't understand what "them" means, look at the code below.
For example, define a route /ping
get "/ping" do
send_resp(conn, 200, "pong")
end
I know that it can be done with the conn
function in use Plug.Test
, but it is based on the HTTP Client, not a runtime function call, which is too inefficient.