Middleware to handle http in golang