Class yii\httpclient\RequestEvent

Inheritanceyii\httpclient\RequestEvent » yii\base\Event
Available since extension's version2.0.1
Source Code https://github.com/yiisoft/yii2-httpclient/blob/master/src/RequestEvent.php

RequestEvent represents the event parameter used for an request events.

Public Properties

Hide inherited properties

Property Type Description Defined By
$request yii\httpclient\Request Related HTTP request instance. yii\httpclient\RequestEvent
$response yii\httpclient\Response|null Related HTTP response. yii\httpclient\RequestEvent

Property Details

Hide inherited properties

$request public property

Related HTTP request instance.

$response public property

Related HTTP response. This field will be filled only in case some response is already received, e.g. after request is sent.