yii\httpclient\Client::afterSend PHP Method

afterSend() public method

The method will trigger the [[EVENT_AFTER_SEND]] event.
Since: 2.0.1
public afterSend ( Request $request, Response $response )
$request Request request instance.
$response Response received response instance.
    public function afterSend($request, $response)
    {
        $event = new RequestEvent();
        $event->request = $request;
        $event->response = $response;
        $this->trigger(self::EVENT_AFTER_SEND, $event);
    }