Access to Server and Request objects under Registry

Access to Server and Request objects under Registry

am 16.04.2008 21:58:13 von Artem Kuchin

Hello!

Is there any way to access server and request objects
when script is running under Registry?

--
Regards,
Artem

Re: Access to Server and Request objects under Registry

am 16.04.2008 22:11:04 von gozer

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigE64C360B517CDE4C51424A83
Content-Type: text/plain; charset=KOI8-R; format=flowed
Content-Transfer-Encoding: quoted-printable

Artem Kuchin wrote:
> Hello!
>=20
> Is there any way to access server and request objects
> when script is running under Registry?

# From the top-level
my $r =3D shift;

OR
# PerlOptions +GlobalRequest
# Apache2::RequestUtil (http://perl.apache.org/docs/2.0/api/Apache2/Reque=
stUtil.html#C_request_)
use Apache2::RequestUtil;
my $r =3D Apache2::RequestUtil->request

--=20
Philippe M. Chiasson GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5
http://gozer.ectoplasm.org/ m/gozer\@(apache|cpan|ectoplasm)\.org/


--------------enigE64C360B517CDE4C51424A83
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIBl1ZyzKhB4jDpaURAm//AJ9b25b+CetFHPo5MorsgL/cYEW9oACg lAxa
dnR9XwL1WJD+0fzsHflM14A=
=Yuwh
-----END PGP SIGNATURE-----

--------------enigE64C360B517CDE4C51424A83--

Re: Access to Server and Request objects under Registry

am 16.04.2008 22:11:39 von Adam Prime

my $r = shift;

at the top of your file running under registry should work. You can
also use Apache->request in mp1, or Apache2::RequestUtil->request in
mp2 (if you're using the prefork mpm)

Adam

Quoting Artem Kuchin :

> Hello!
>
> Is there any way to access server and request objects
> when script is running under Registry?
>
> --
> Regards,
> Artem