v1.7.0
版本发布时间: 2016-10-13 08:12:35
WordPress/Requests最新发布版本:v2.0.12(2024-07-08 16:51:54)
-
Add support for HHVM and PHP 7
Requests is now tested against both HHVM and PHP 7, and they are supported as first-party platforms.
-
Transfer & connect timeouts, in seconds & milliseconds
cURL is unable to handle timeouts under a second in DNS lookups, so we round those up to ensure 1-999ms isn't counted as an instant failure.
-
Rework cookie handling to be more thorough.
Cookies are now restricted to the same-origin by default, expiration is checked.
(props @catharsisjelly, @rmccue, #120, #124, #130, #132, #156)
-
Improve testing
Tests are now run locally to speed them up, as well as further general improvements to the quality of the testing suite. There are now also comprehensive proxy tests to ensure coverage there.
(props @rmccue, #75, #107, #170, #177, #181, #183, #185, #196, #202, #203)
-
Support custom HTTP methods
Previously, custom HTTP methods were only supported on sockets; they are now supported across all transports.
(props @ocean90, #227)
-
Add byte limit option
(props @rmccue, #172)
-
Support a Requests_Proxy_HTTP() instance for the proxy setting.
(props @ocean90, #223)
-
Add progress hook
(props @rmccue, #180)
-
Add a before_redirect hook to alter redirects
(props @rmccue, #205)
-
Pass cURL info to after_request
(props @rmccue, #206)