Support light middleware stacks (e.g. rails-api).