Repository navigation
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
withMiddlewaremethod to theApplicationclass, - Reworked the
handleRequestto call the middlewares in order of add with thewithMiddlewarecallbacks, - Improved the
StaticResponsehandling 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.