PHP Class Tebru\Retrofit\Event\AfterSendEvent

Author: Nate Brunette ([email protected])
Inheritance: extends Symfony\Component\EventDispatcher\Event
ファイルを表示 Open project: tebru/retrofit-php Class Usage Examples

Public Methods

Method 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 method

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 method

Get the request
public getRequest ( ) : Psr\Http\Message\RequestInterface
return Psr\Http\Message\RequestInterface

getResponse() public method

Get the response
public getResponse ( ) : Psr\Http\Message\ResponseInterface
return Psr\Http\Message\ResponseInterface

setResponse() public method

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