File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ Libraries
39
39
=========
40
40
41
41
- **CURLRequest: ** Added ``dns_cache_timeout `` option to change default DNS cache timeout.
42
+ - **CURLRequest: ** Added ``fresh_connect `` options to enable/disabled request fresh connection.
42
43
- **Email: ** Added support for choosing the SMTP authorization method. You can change it via ``Config\Email::$SMTPAuthMethod `` option.
43
44
- **Image: ** The ``ImageMagickHandler `` has been rewritten to rely solely on the PHP ``imagick `` extension.
44
45
- **Image: ** Added ``ImageMagickHandler::clearMetadata() `` method to remove image metadata for privacy protection.
Original file line number Diff line number Diff line change @@ -278,6 +278,15 @@ if it's not already set:
278
278
279
279
.. _curlrequest-request-options-headers :
280
280
281
+ fresh_connect
282
+ =============
283
+
284
+ .. versionadded :: 4.7.0
285
+
286
+ You can send request as fresh connection by the ``fresh_connect `` option:
287
+
288
+ .. literalinclude :: curlrequest/038.php
289
+
281
290
headers
282
291
=======
283
292
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ $ client ->request ('GET ' , 'http://example.com ' , ['fresh_connect ' => true ]);
4
+ $ client ->request ('GET ' , 'http://example.com ' , ['fresh_connect ' => false ]);
You can’t perform that action at this time.
0 commit comments