PHP Class yii\httpclient\Transport

Since: 2.0
Author: Paul Klimov ([email protected])
Inheritance: extends yii\base\Component
Afficher le fichier Open project: yiisoft/yii2-httpclient

Méthodes publiques

Méthode Description
batchSend ( array $requests ) : Response[] Performs multiple HTTP requests.
send ( Request $request ) : Response Performs given request.

Method Details

batchSend() public méthode

Particular transport may benefit from this method, allowing sending requests in parallel. This method accepts an array of the Request objects and returns an array of the Response objects. Keys of the response array correspond the ones from request array.
public batchSend ( array $requests ) : Response[]
$requests array requests to perform.
Résultat Response[] responses list.

send() abstract public méthode

Performs given request.
abstract public send ( Request $request ) : Response
$request Request request to be sent.
Résultat Response response instance.