Re: [Maypole] Access to the Apache::Request object

From: Sebastian Riedel (sri at oook.de)
Date: Mon Sep 06 2004 - 11:28:49 BST


Simon Wistow:

>I currently have a Maypole app that does something like this ...
>
> sub view :Exported {
> my ($self, $r, $att) = @_;
>
>
> eval {
> my $a = Apache->request;
> $a->headers_out->set("Content-Disposition" => "inline;
> filename=".$att->filename) if $a;
> };
>
> $r->{content_type} = $att->content_type;
> $r->{output} = $att->payload;
> }
>
>which seems, well, clunky. Am I missing something from the Maypole docs?
>
>
No, a simple header interface is on the todo list! :)

>cheers,
>Simon
>
>
>
>
Cheers,
Sebastian

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:56 GMT