yii\httpclient\Client::put PHP Method

put() public method

Creates 'PUT' request.
public put ( string $url, array | string $data = null, array $headers = [], array $options = [] ) : Request
$url string target URL.
$data array | string if array - request data, otherwise - request content.
$headers array request headers.
$options array request options.
return Request request instance.
    public function put($url, $data = null, $headers = [], $options = [])
    {
        return $this->createRequestShortcut('put', $url, $data, $headers, $options);
    }