Document middleware rules.