Skip to content

Commit 488b69b

Browse files
author
Greg Bowler
committed
Add stub to convert fetch init to curlopt
1 parent f9387ed commit 488b69b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Http.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,14 @@ public function fetch($input, array $init = []):HttpPromise {
101101
// TODO: Set init keys from RequestInterface here.
102102
}
103103

104+
$curlOptArray = [];
105+
foreach($init as $key => $value) {
106+
// TODO: Convert fetch init values to curlOpt values here.
107+
}
108+
104109
$this->requestResolver->add(
105110
$uri,
106-
$init,
111+
$curlOptArray,
107112
$deferred
108113
);
109114

0 commit comments

Comments
 (0)