Added the documentation of configuring middlewares to Connection