Full-Stack Phoenix Course Club!

3. Routes, Plugs, and Pipelines

This lesson explains how a request is handled by Phoenix. It covers what the %Conn{} (connection) struct is, how it looks, and its passage through the plugs in the endpoint module, and ultimately, its transfer to the Phoenix Router module which is the last plug in the endpoint module. It also covers how the router then passes the %Conn{} struct through pipelines of plugs, allowing it to be read or modified. The lesson also adds a plug to a pipeline to show how each plug operates on the %Conn{} struct, one plug at a time.