Skip to content

1.1.0-aplha02

Compare
Choose a tag to compare
@cpt-erwin cpt-erwin released this 28 Jan 13:07
· 20 commits to master since this release
  • minor routing enhancements
  • major Middleware enhancements

Middlewares are now configurable via Route with the possibility to set multiple Middlewares for a single route.

The way of approaching the Middleware problematic was remade from scratch:

  • Middlewares are called in the order that they were set on the route
  • every Middleware call before() method and hand over the control to the other Middleware
    • when the last Middleware is called it will call the specified route action
    • after the routing logic is executed all the Middlewares are called in the reversed order performing the after() method
    • in the end, the Response object is returned with content stored in its body