You can override this if you like but remember it has to build an object without arguments.
Returns the mime type this writer will output.
It is called like this by the framework:
$this->mimeType($resp) ;
So you can adapt the mime type according to the response to be given.
Returns the bytes the framework has to write back to client.
It is called by the framework like this ($resp is a Apache2::REST::Response):
$this->asBytes($resp) ;
To install Apache2::REST, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache2::REST
CPAN shell
perl -MCPAN -e shell install Apache2::REST
For more information on module installation, please visit the detailed CPAN module installation guide.