Response::isInformational()

bool isInformational() Is response informative? Return Value bool

Response::isFresh()

bool isFresh() Returns true if the response is "fresh". Fresh responses may be served from cache without any interaction with the origin. A response is considered fresh when it includes a Cache-Control/max-age indicator or Expires header and the calculated age is less than the freshness lifetime. Return Value bool true if the response is fresh, false otherwise

Response::isForbidden()

bool isForbidden() Is the response forbidden? Return Value bool

Response::isEmpty()

bool isEmpty() Is the response empty? Return Value bool

Response::isClientError()

bool isClientError() Is there a client error? Return Value bool

Response::isCacheable()

bool isCacheable() Returns true if the response is worth caching under any circumstance. Responses marked "private" with an explicit Cache-Control directive are considered uncacheable. Responses with neither a freshness lifetime (Expires, max-age) nor cache validator (Last-Modified, ETag) are considered uncacheable. Return Value bool true if the response is worth caching, false otherwise

Response::hasVary()

bool hasVary() Returns true if the response includes a Vary header. Return Value bool true if the response includes a Vary header, false otherwise

Response::getVary()

array getVary() Returns an array of header names given in the Vary header. Return Value array An array of Vary names

Response::getTtl()

int|null getTtl() Returns the response's time-to-live in seconds. It returns null when no freshness information is present in the response. When the responses TTL is <= 0, the response may not be served from cache without first revalidating with the origin. Return Value int|null The TTL in seconds

Response::getStatusCode()

int getStatusCode() Retrieves the status code for the current web response. Return Value int Status code