Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1a7fa5d

Browse files
bug #46380 [HttpClient] Add missing HttpOptions::setMaxDuration() (nicolas-grekas)
This PR was merged into the 4.4 branch. Discussion ---------- [HttpClient] Add missing HttpOptions::setMaxDuration() | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | no Forgotten in #32807 Commits ------- 54d442a [HttpClient] Add missing HttpOptions::setMaxDuration()
2 parents b37fc1e + 54d442a commit 1a7fa5d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Symfony/Component/HttpClient/HttpOptions.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,16 @@ public function setTimeout(float $timeout)
197197
return $this;
198198
}
199199

200+
/**
201+
* @return $this
202+
*/
203+
public function setMaxDuration(float $maxDuration)
204+
{
205+
$this->options['max_duration'] = $maxDuration;
206+
207+
return $this;
208+
}
209+
200210
/**
201211
* @return $this
202212
*/

0 commit comments

Comments
 (0)