PHP Class yii\httpclient\debug\HttpClientPanel

Since: 2.0
Author: Paul Klimov ([email protected])
Inheritance: extends yii\debug\Panel
Afficher le fichier Open project: yiisoft/yii2-httpclient Class Usage Examples

Méthodes publiques

Méthode Description
calculateTimings ( ) : array Calculates given request profile timings.
getDetail ( )
getHttpClient ( ) : Client
getMethods ( ) : array Returns array request methods
getName ( )
getSummary ( )
getTypes ( ) : array Returns array request types
init ( )
save ( )
setHttpClient ( array $httpClient )

Méthodes protégées

Méthode Description
getModels ( ) : array Returns an array of models that represents logs of the current request.
getRequestMethod ( string $timing ) : string Returns HTTP request method.
getRequestType ( string $category ) : string Returns request type.
getTotalRequestTime ( array $timings ) : integer Returns total request time.

Method Details

calculateTimings() public méthode

Calculates given request profile timings.
public calculateTimings ( ) : array
Résultat array timings [token, category, timestamp, traces, nesting level, elapsed time]

getDetail() public méthode

public getDetail ( )

getHttpClient() public méthode

public getHttpClient ( ) : Client
Résultat yii\httpclient\Client

getMethods() public méthode

Returns array request methods
public getMethods ( ) : array
Résultat array

getModels() protected méthode

Can be used with data providers such as \yii\data\ArrayDataProvider.
protected getModels ( ) : array
Résultat array models

getName() public méthode

public getName ( )

getRequestMethod() protected méthode

Returns HTTP request method.
protected getRequestMethod ( string $timing ) : string
$timing string timing procedure string
Résultat string request method such as GET, POST, PUT, etc.

getRequestType() protected méthode

Returns request type.
protected getRequestType ( string $category ) : string
$category string
Résultat string request type such as 'normal', 'batch'

getSummary() public méthode

public getSummary ( )

getTotalRequestTime() protected méthode

Returns total request time.
protected getTotalRequestTime ( array $timings ) : integer
$timings array
Résultat integer total time

getTypes() public méthode

Returns array request types
public getTypes ( ) : array
Résultat array

init() public méthode

public init ( )

save() public méthode

public save ( )

setHttpClient() public méthode

public setHttpClient ( array $httpClient )
$httpClient array