All notable changes to php-http-pool
will be documented in this file.
symfony/console
allow v7
Add support for Laravel 11
- add
syslog
for logging - update for PHP 8.3
- Add
setHeaders()
method toHttpPool
class to allow setting headers for all requests.
HttpPoolFullfilled
:getFullfilled
andgetRejected
now return a filter ofgetResponses
to reduce size of the response, same forgetFullfilledCount
andgetRejectedCount
, addtoArray
methodHttpPoolResponseMetadata
extra headers:Origin
is noworigin
,ID
is nowid
and new headerstatus
is added to get status of Guzzle pool response, addgetStatus
methodHttpPoolResponseBody
removeisString
method- refactoring: reduce complexity of
HttpPool
,HttpPoolRequest
andHttpPoolFullfilled
HttpPoolResponseMetadata
now have headers asarray<string, string>
instead ofarray<string, array<string>>
- Fix a problem with origin request for
HttpPoolResponseMetadata
- Allow all URL to be null, to prevent throw errors if a full chunk is not available
- Allow some URL to be null in pool, a warning message will appear if console can print. An error will be added to
errors
list. - If all URL are null, an Exception will be raised.
- fix
HttpPool
isAllowMemoryPeak
property
HttpPool
removehandleMemoryPeak
to replace withallowMemoryPeak
, more flexibleHttpPoolExecuted
is nowHttpPoolFullfilled
- add
isBinary
toHttpPoolResponseBody
to check if the response body is binary, other checks will be triggered if it is not binary
HttpPool
removehandleMemoryPeak
to replace withallowMemoryPeak
, more flexibleHttpPoolExecuted
is nowHttpPoolFullfilled
- add
isBinary
toHttpPoolResponseBody
to check if the response body is binary, other checks will be triggered if it is not binary
- remove
allowMemoryPeak
replaced withHttpPool::handleMemoryPeak
execute()
method will returnHttpPoolExecuted::class
instead ofHttpPool::class
, pool can be accessed withgetPool()
method
error
is nowerrors
and is an array of errors (getter is nowgetErrors
)HttpPool::make()
has nowthrowErrors
param to prevent errors throwing- add
HttpPoolRequestItem
class for request item - refactor
HttpPool::class
- memory peak option do not reset memory peak anymore, you have to call
HttpPool::resetMemory()
disallowPrintConsole
becomeallowPrintConsole
and default value isfalse
setMaximumMemory
removed, merged intoallowMemoryPeak
init