Fix Issues 1226

Add a parameter `allowEmpty` for Http\Request::get\Http\Request::getQuery\Http\Request::getPost