Support middlewares while sending out data