nodejs function decorators (like connect's middleware)