Plack::Request has side-effect for $env
implement before_action