PhoenixIntegration.Requests.follow_redirect

You're seeing just the function follow_redirect, go back to PhoenixIntegration.Requests module for more information.
Link to this function

follow_redirect(conn, max_redirects \\ 5)

View Source

Given a conn who's response is a redirect, follow_redirect calls the path indicated by the "location" response header and returns the conn from that call.

Parameters

  • conn A conn whose status 302, which is a redirect. The conn's location header should point to the path being redirected to.
  • max_redirects The maximum number of recirects to follow. Defaults to 5;

Any incoming conn.status other than 302 causes follow_redirect to take no action and return the incoming conn for further processing.