Thanks so much @Nicd.
It worked finally.
Please find code below:
get “/testurl” do
conn |> Plug.Conn.resp(:found, “”) |> Plug.Conn.put_resp_header(“location”, “https://www.google.com”)
end
Thanks so much @Nicd.
It worked finally.
Please find code below:
get “/testurl” do
conn |> Plug.Conn.resp(:found, “”) |> Plug.Conn.put_resp_header(“location”, “https://www.google.com”)
end