Final Class yii\httpclient\MockTransport

Inheritanceyii\httpclient\MockTransport » yii\httpclient\Transport » yii\base\Component
Source Code https://github.com/yiisoft/yii2-httpclient/blob/master/src/MockTransport.php

Method Details

appendResponse() public method

public void appendResponse ( yii\httpclient\Response $response )
$response yii\httpclient\Response
flushRequests() public method

public yii\httpclient\Request[] flushRequests ( )
send() public method

Performs given request.

public yii\httpclient\Response send ( $request )
$request yii\httpclient\Request

Request to be sent.

return yii\httpclient\Response

Response instance.

throws yii\httpclient\Exception

on failure.