Added Request class

use `this->getMethod` instead