Provides middleware to be used with web-pipe