You are here

public function Vcl::prepare_update_setting in Fastly 7.2

Prepares update setting data.

@data array

Return value

array

1 call to Vcl::prepare_update_setting()
Vcl::prepare_setting in ./fastly.vcl.inc
Prepares setting for insertion.

File

./fastly.vcl.inc, line 528

Class

Vcl
Class to control the VCL handling.

Code

public function prepare_update_setting($data) {
  $url = $this->_version_base_url . '/' . $this->_last_cloned_version . '/request_settings/' . $data['name'];
  $request = array(
    'url' => $url,
    'data' => $data,
    'type' => "PUT",
  );
  return $request;
}