Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 54d442a

Browse filesBrowse files
[HttpClient] Add missing HttpOptions::setMaxDuration()
1 parent b37fc1e commit 54d442a
Copy full SHA for 54d442a

File tree

1 file changed

+10
-0
lines changed
Filter options

1 file changed

+10
-0
lines changed

‎src/Symfony/Component/HttpClient/HttpOptions.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpClient/HttpOptions.php
+10Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.