Class yii\httpclient\debug\HttpClientPanel
| Inheritance | yii\httpclient\debug\HttpClientPanel » yii\debug\Panel |
|---|---|
| Available since version | 2.0 |
Debugger panel that collects and displays HTTP requests performed.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| calculateTimings() | Calculates given request profile timings. | yii\httpclient\debug\HttpClientPanel |
| getDetail() | yii\httpclient\debug\HttpClientPanel | |
| getHttpClient() | yii\httpclient\debug\HttpClientPanel | |
| getMethods() | Returns array request methods | yii\httpclient\debug\HttpClientPanel |
| getName() | yii\httpclient\debug\HttpClientPanel | |
| getSummary() | yii\httpclient\debug\HttpClientPanel | |
| getTypes() | Returns array request types | yii\httpclient\debug\HttpClientPanel |
| init() | yii\httpclient\debug\HttpClientPanel | |
| save() | yii\httpclient\debug\HttpClientPanel | |
| setHttpClient() | yii\httpclient\debug\HttpClientPanel |
Protected Methods
| Method | Description | Defined By |
|---|---|---|
| getModels() | Returns an array of models that represents logs of the current request. | yii\httpclient\debug\HttpClientPanel |
| getRequestMethod() | Returns HTTP request method. | yii\httpclient\debug\HttpClientPanel |
| getRequestType() | Returns request type. | yii\httpclient\debug\HttpClientPanel |
| getTotalRequestTime() | Returns total request time. | yii\httpclient\debug\HttpClientPanel |
Method Details
Calculates given request profile timings.
| public array calculateTimings ( ) | ||
| return | array | Timings [token, category, timestamp, traces, nesting level, elapsed time] |
|---|---|---|
| public void getDetail ( ) |
| public yii\httpclient\Client getHttpClient ( ) | ||
| throws | \yii\base\InvalidConfigException | |
|---|---|---|
Returns array request methods
| public array getMethods ( ) |
Returns an array of models that represents logs of the current request.
Can be used with data providers such as \yii\data\ArrayDataProvider.
| protected array getModels ( ) | ||
| return | array | Models |
|---|---|---|
| public void getName ( ) |
Returns HTTP request method.
| protected string getRequestMethod ( $timing ) | ||
| $timing | string | Timing procedure string |
| return | string | Request method such as GET, POST, PUT, etc. |
|---|---|---|
Returns request type.
| protected string getRequestType ( $category ) | ||
| $category | string | |
| return | string | Request type such as 'normal', 'batch' |
|---|---|---|
| public void getSummary ( ) |
Returns total request time.
| protected integer getTotalRequestTime ( $timings ) | ||
| $timings | array | |
| return | integer | Total time |
|---|---|---|
Returns array request types
| public array getTypes ( ) |
| public void init ( ) |
| public void save ( ) |
| public void setHttpClient ( $httpClient ) | ||
| $httpClient | array | |