Skip to content

v0.3.0

Latest

Choose a tag to compare

@Deimort Deimort released this 30 Aug 16:20
· 1 commit to master since this release

This release introduce the middleware system of Phabrique. It allow to create callback functions that will be called before, or after the request that allows to add some extra behaviour.

What changed

  • Added a withMiddleware method to the Application class,
  • Reworked the handleRequest to call the middlewares in order of add with the withMiddleware callbacks,
  • Improved the StaticResponse handling of file types. The response now takes into account a more up-to-date version of mimetypes based on https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types.