sendRequest() protected method
Sends HTTP request.
protected array sendRequest ( $method, $url, array $params = [], array $headers = [] )$method string
Request type. $url string
Request URL. $params array
Request params. $headers array
Additional request headers. return array
Response. throws yii\base\Exception
on failure.