示例#1
0
 /**
  * @return bool
  */
 public function isXmlHttpRequest()
 {
     return $this->header->has('X_REQUESTED_WITH') ? 'xmlhttprequest' === strtolower($this->header->get('X_REQUESTED_WITH')) : false;
 }
示例#2
0
 /**
  * Returns true if the response includes headers that can be used to validate
  * the response with the origin server using a conditional GET request.
  *
  * @return bool true if the response is validateable, false otherwise
  *
  * @api
  */
 public function isValidateable()
 {
     return $this->header->has('Last-Modified') || $this->header->has('ETag');
 }