PHP Interface Tebru\Retrofit\Http\Callback

Author: Edward Pfremmer ([email protected])
Author: Nate Brunete ([email protected])
Afficher le fichier Open project: tebru/retrofit-php Interface Usage Examples

Méthodes publiques

Méthode Description
onFailure ( RequestException $exception ) Called on errors
onResponse ( Psr\Http\Message\ResponseInterface $response ) Called on successful responses

Method Details

onFailure() public méthode

Called on errors
public onFailure ( RequestException $exception )
$exception Tebru\Retrofit\Exception\RequestException

onResponse() public méthode

Called on successful responses
public onResponse ( Psr\Http\Message\ResponseInterface $response )
$response Psr\Http\Message\ResponseInterface