expose CurlRequest::setOpt and setHeaders methods