Added middleware_classes parameter for Server::run