Re: Modperl as backend for mobile apps

Adam Prime <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On 16-10-31 10:34 AM, John Dunlap wrote:
> We do this by processing all requests in an eval block and putting
> Apache into assbackwards mode so that we can send a 500 response with a
> JSON response body

You can also do it with $r->custom_response[1] from within your mod_perl 
code itself.

https://perl.apache.org/docs/2.0/api/Apache2/Response.html#C_custom_response_

Adam
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.