Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit54d442a

Browse files
[HttpClient] Add missing HttpOptions::setMaxDuration()
1 parentb37fc1e commit54d442a

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+
publicfunctionsetMaxDuration(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)

[8]ページ先頭

©2009-2025 Movatter.jp