Re: r.handler?
Shugo Maeda <[email protected]> Wed, 24 May 2006 19:30:06 +0900
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
Hi, sorry to be late.
Pascal Damian wrote:
> Thanks to Shugo for the answer to my last question.
>
> Here's another newbie question: does mod_ruby support something like
> r.handler (the equivalent for $r->handler in mod_perl)?
Apache::Request#dispatch_handler seems to be what you want.
r = Apache.request
r.content_type = "text/plain"
r.send_http_header
r.print(r.dispatch_handler)
Shugo