8000 [HttpClient] Add missing HttpOptions::setMaxDuration() · symfony/symfony@54d442a · GitHub
[go: up one dir, main page]

Skip to content

Commit 54d442a

Browse files
[HttpClient] Add missing HttpOptions::setMaxDuration()
1 parent b37fc1e commit 54d442a

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)
0