Update middleware documentation.