You are here

public function Vcl::prepare_update_vcl in Fastly 7.2

Prepares request for updating existing VCL.

@data array

Return value

array

1 call to Vcl::prepare_update_vcl()
Vcl::prepare_vcl in ./fastly.vcl.inc
Prepares VCL request.

File

./fastly.vcl.inc, line 313

Class

Vcl
Class to control the VCL handling.

Code

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