BearFramework\App\Response

Response object

BearFramework\App\Response {

    /* Properties */
    public string $content
    public array $headers

    /* Methods */
    public __construct ( [ string $content = '' ] )
    public void setMaxAge ( int $seconds )
    public void setContentType ( string $mimeType )
    public void setStatusCode ( int $code )

}

Methods

BearFramework\App\Response::setContentType - Sets the value of the content type header
BearFramework\App\Response::setMaxAge - Sets the max age attribute of the cache-control header
BearFramework\App\Response::setStatusCode - Sets the status code of the response header
BearFramework\App\Response::__construct - The constructor