Understood, that's the way other middleware had implemented this.  But, I see that they're server middleware.