public function Vcl::get_response_object in Fastly 7.2
Fetches response object by name.
@name string
Return value
bool
1 call to Vcl::get_response_object()
- Vcl::prepare_response_object in ./
fastly.vcl.inc - Prepares request object for insertion.
File
- ./
fastly.vcl.inc, line 594
Class
- Vcl
- Class to control the VCL handling.
Code
public function get_response_object($name) {
$uri = $this->_version_base_url . '/' . $this->_last_cloned_version . '/response_object/' . $name;
$response = $this->_api
->makeRequest($uri, array(), "GET", $this->_headers_get);
if ($response->code != 404) {
return TRUE;
}
return FALSE;
}