Skip to content

Commit

Permalink
Add stub to convert fetch init to curlopt
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Feb 20, 2019
1 parent f9387ed commit 488b69b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,14 @@ public function fetch($input, array $init = []):HttpPromise {
// TODO: Set init keys from RequestInterface here.
}

$curlOptArray = [];
foreach($init as $key => $value) {
// TODO: Convert fetch init values to curlOpt values here.
}

$this->requestResolver->add(
$uri,
$init,
$curlOptArray,
$deferred
);

Expand Down

0 comments on commit 488b69b

Please sign in to comment.