--- trunk/lib/Frey/Web.pm 2008/11/20 12:55:06 475 +++ trunk/lib/Frey/Web.pm 2008/11/20 12:56:37 476 @@ -49,6 +49,14 @@ is => 'rw', isa => 'Str', default => 'text/html', + documentation => 'Content-type header', +); + +has 'dump_max_bytes' => ( + is => 'rw', + isa => 'Int', + default => 4096, + documentation => 'Maximum dump size sent to browser before truncation', ); =head2 inline_smaller_than @@ -158,7 +166,7 @@ if ( ref($content) ) { $content = '' . dump($content) . ''; my $l = length($content); - $content = qq|$l bytes| if $l > 1024; + $content = qq|$l bytes| if $l > $self->dump_max_bytes; } else { $content = qq|$content|; }