[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] Re: concerns with new header_props


Quoting Mark Stosberg <suppressed>:
> These are good concerns. My concern is about proliferation of the C::A
> interface. If we have "header_add", but /not/ add_cookie, I could be
> happy.
> 
> header_add() can be documented to explain It's really only useful for
> cookies and warnings right now. 

It would of course be trivial to add an add_cookie method that is a wrapper
around header_add.  This could either be included in CGI::App, or it could be
defined in your own Base class.

sub add_cookie {
  my $self = shift;
  return $self->header_add(-cookie => @_);
}

Cheers,

Cees

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.