Added
Authenticator
contract and CookieAuthenticator
implementation.
HttpClient
contract and GuzzleHttpClient
implementation.
isStatusCode
assert in Response
contract.
Updated
CookieAuthorizer
constructor accepts Authenticator
instead of credentials.
TokenAuthorizer
constructor accepts string token instead of array.
Authorizer
delegates authentication to Authenticator
.
Client
delegates HTTP requests to HttpClient
.
- Changed namespace of
AuthenticationException
.
getHeaders
method was dropped from Authorizer
contract.
Response
interface methods getResponse
, getStatusCode
, getCookie
, getLocation
were renamed to httpResponse
, statusCode
, cookie
, location
respectively.
User-Agent
header is more verbose.
- REST Client version is defined in
Client
contract instead of each concrete implementation.
- Additional param
$options
was added to Client
methods: request
, get
, post
, put
, delete
.
View the changes from 2.0.1 to 3.0.0