File tree Expand file tree Collapse file tree 1 file changed +32
-2
lines changed Expand file tree Collapse file tree 1 file changed +32
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ protected function getDefinition()
3737 'CAFile ' => null ,
3838 'CertFile ' => null ,
3939 'KeyFile ' => null ,
40- 'InsecureSkipVerify ' => null
40+ 'InsecureSkipVerify ' => null ,
41+ 'AdditionalCurlOpts ' => array (),
4142 );
4243 }
4344
@@ -274,6 +275,35 @@ public function setInsecureSkipVerify($insecureSkipVerify)
274275 return $ this ;
275276 }
276277
278+ /**
279+ * @return array
280+ */
281+ public function getAdditionalCurlOpts ()
282+ {
283+ return $ this ->_storage ['AdditionalCurlOpts ' ];
284+ }
285+
286+ /**
287+ * @param array $additionalCurlOpts
288+ * @return $this
289+ */
290+ public function setAdditionalCurlOpts (array $ additionalCurlOpts )
291+ {
292+ $ this ->_storage ['AdditionalCurlOpts ' ] = $ additionalCurlOpts ;
293+ return $ this ;
294+ }
295+
296+ /**
297+ * @param int $opt
298+ * @param mixed $value
299+ * @return $this
300+ */
301+ public function setAdditionalCurlOpt ($ opt , $ value )
302+ {
303+ $ this ->_storage ['AdditionalCurlOpts ' ][$ opt ] = $ value ;
304+ return $ this ;
305+ }
306+
277307 /**
278308 * @return string
279309 */
@@ -305,7 +335,7 @@ public function compileAddress()
305335 */
306336 public function getCurlOptArray ()
307337 {
308- $ opts = array ();
338+ $ opts = $ this -> getAdditionalCurlOpts ();
309339
310340 if ($ auth = $ this ->getHttpAuth ())
311341 $ opts [CURLOPT_HTTPAUTH ] = (string )$ auth ;
You can’t perform that action at this time.
0 commit comments