Moved request function directly into the RequestMixin class