yii\httpclient\Request::afterSend PHP Method

afterSend() public method

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