On 22.12.2021 13:19, Wes Peng wrote:
> Raku has its own WSGI httpserver?
>
Yes, as there are several similar things for Apache/perl (such as Plack/PSGI).
But these frameworks only do *partially* what mod_perl allows one to do.
An essential part of mod_perl (and something for which I believe there is no equivalent in
*any* language), is the ability to insert itself deeply into Apache httpd, and controlling
what happens inside httpd at virtually any stage of an HTTP request processing.
This page :
https://perl.apache.org/docs/2.0/user/handlers/http.html contains a diagram of all the "phases" which a HTTP request goes through in Apache httpd.
WSGI/PSGI Frameworks give you access to what happens in the bottom "response" block.
mod_perl gives you access to what happens in *all* the blocks.
For many developers, being able to act at the Response stage is enough, and in such a
case, they will be happy with what a WSGI/PSGI/proxy solution provides.
However, if you want to do deeper things within Apache httpd (such as for instance create
your own authentication/authorization mechanism, or creating your own input/output
filters), and you want to do that using perl as a language, then mod_perl is your thing.
>
>
>> Has anyone considered having a mod_raku version of mod_perl?
>>
>> Merry Christmas to all.
>>
>> -Tom
>>
>>
>