Currently handlers are only used to sort input. It would be nice to be able to handle output as well for preprocessing and hooks. It would make the lib act more like a middleware lib.
Perhaps a way of registering middleware and depending on what it implements, running it at different times?