Response::getAge()

int getAge() Returns the age of the response. Return Value int The age of the response in seconds

Response::getContent()

string getContent() Gets the current response content. Return Value string Content

Response::getContent()

string getContent() Gets the response content. Return Value string The response content

Response::closeOutputBuffers()

static closeOutputBuffers(int $targetLevel, bool $flush) Cleans or flushes output buffers up to target level. Resulting level can be greater than target level if a non-removable buffer has been encountered. Parameters int $targetLevel The target output buffering level bool $flush Whether to flush or clean the buffers

Response

class Response Response represents an HTTP response. Constants HTTP_CONTINUE HTTP_SWITCHING_PROTOCOLS HTTP_PROCESSING HTTP_OK HTTP_CREATED HTTP_ACCEPTED HTTP_NON_AUTHORITATIVE_INFORMATION HTTP_NO_CONTENT HTTP_RESET_CONTENT HTTP_PARTIAL_CONTENT HTTP_MULTI_STATUS HTTP_ALREADY_REPORTED HTTP_IM_USED HTTP_MULTIPLE_CHOICES HTTP_MOVED_PERMANENTLY HTTP_FOUND HTTP_SEE_OTHER HTTP_NOT_MODIFIED HTTP_USE_PROXY HTTP_RESERVED

Response::create()

static Response create(mixed $content = '', int $status = 200, array $headers = array()) Factory method for chainability. Example: return Response::create($body, 200) ->setSharedMaxAge(300); Parameters mixed $content The response content, see setContent() int $status The response status code array $headers An array of response headers Return Value Response

Response::expire()

Response expire() Marks the response stale by setting the Age header to be equal to the maximum age of the response. Return Value Response

Response

class Response Response object. Methods __construct(string $content = '', int $status = 200, array $headers = array()) Constructor. string __toString() Converts the response object to string containing all headers and the response content. string getContent() Gets the response content. int getStatus() Gets the response status code. array getHeaders() Gets the response headers. string|array getHeader(string $header, bool $first = true) Gets a response header.

ResourceNotFoundException

class ResourceNotFoundException extends RuntimeException implements ExceptionInterface The resource was not found. This exception should trigger an HTTP 404 response in your application code.

ResourceInterface

interface ResourceInterface ResourceInterface is the interface that must be implemented by all Resource classes. Methods string __toString() Returns a string representation of the Resource. Details string __toString() Returns a string representation of the Resource. This method is necessary to allow for resource de-duplication, for example by means of array_unique(). The string returned need not have a particular meaning, but has to be identica