See https://blog.adamchalmers.com/what-are-extensions/ for details - much better job of describing than I could.
This is nice, and it'd be really nice if it enabled e.g. adding session management as layers and similar. This is a bit challenging at the moment. Extensions are a huge boon for most webserver-esque frameworks.