PHP Class Tebru\Retrofit\Event\AfterSendEvent

Author: Nate Brunette ([email protected])
Inheritance: extends Symfony\Component\EventDispatcher\Event
Afficher le fichier Open project: tebru/retrofit-php Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface $response = null ) Constructor
getRequest ( ) : Psr\Http\Message\RequestInterface Get the request
getResponse ( ) : Psr\Http\Message\ResponseInterface Get the response
setResponse ( Psr\Http\Message\ResponseInterface $response = null ) Set the updated response back to the event

Method Details

__construct() public méthode

Constructor
public __construct ( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface $response = null )
$request Psr\Http\Message\RequestInterface
$response Psr\Http\Message\ResponseInterface

getRequest() public méthode

Get the request
public getRequest ( ) : Psr\Http\Message\RequestInterface
Résultat Psr\Http\Message\RequestInterface

getResponse() public méthode

Get the response
public getResponse ( ) : Psr\Http\Message\ResponseInterface
Résultat Psr\Http\Message\ResponseInterface

setResponse() public méthode

Set the updated response back to the event
public setResponse ( Psr\Http\Message\ResponseInterface $response = null )
$response Psr\Http\Message\ResponseInterface