All notable changes to this library will be documented in this file.
all()
toDispatcher
to retrieve all requests attached to it.getStackSize()
toDispatcher
to retrieve the current stack size.setStackSize()
toDispatcher
to set its stack size.- Support for
CurlFile
topost()
andput()
onCurl
. [GH-15]
- Calling
get()
onDispatcher
without a key. Useall()
onDispatcher
instead.
- Moved to the namespace
Jyggen\Curl
. - Migrated to PSR-4 autoloading.
- Moved
Curl
fromjyggen\Curl
toJyggen\Curl\Curl
. - Requests added to the dispatcher are now split into stacks to avoid a lot of simultaneously requests.
- A closure can be passed to
execute()
onDispatcher
. It'll be used as a callback for each response. __destruct()
onRequest
will now close the internal cURL resource.- The library now depends on
^2.0.5
ofsymfony/http-foundation
.
- Refactored
Curl
away from__callStatic()
to make the public class API more obvious. - Improved the PUT support on
Curl
. - Travis CI testing.
- The library now depends on
~2.0
ofsymfony/http-foundation
.
- Travis CI testing.
- Cleaned up the code a bit.
- Broken tests.
- More unit tests.
- Renamed
Session
toRequest
. - Renamed
SessionInterface
toRequestInterface
. - The library now depends on
~2.3
ofsymfony/http-foundation
.
- Refactored
Curl
to be more testable.
- An issue with empty responses.
- Unused exceptions.
- The library now depends on
~2.2
ofsymfony/http-foundation
.
- Improved code documentation.
- Many issues with
forge()
onResponse
by usingCURLINFO_HEADER_SIZE
.
Version 2.0 introduces a new library flow which changes the way Dispatcher
and Session
interacts with each other. If you've only used the static helper Curl
in the past these changes shouldn't affect you that much. Dispatcher
is stripped down to only be a wrapper around curl_multi_init()
while Session
continues to wrap around curl_init()
but with more functionality previously located in Dispatcher
.
getSessions()
onDispatcher
to retrieve all currently added sessions.- Unit tests for
Dispatcher
.
- Cleaned up the code a bit.
- Unit tests for
Session
.
- An issue with
setOption()
onSession
not handling array input correctly.