| 1 | package Plack::TempBuffer; | ||||||||||
| 2 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 1 | ▶ | use parent 'Stream::Buffered'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 3 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 8 | 3 | my $class = shift; | |||||||||
| 9 | |||||||||||
| 10 | 3 | ▶ | if (defined $Plack::TempBuffer::MaxMemoryBufferSize) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 11 | 2 | warn "Setting \$Plack::TempBuffer::MaxMemoryBufferSize is deprecated. " | |||||||||
| 12 | . "You should set \$Stream::Buffered::MaxMemoryBufferSize instead."; | ||||||||||
| 13 | 2 | $Stream::Buffered::MaxMemoryBufferSize = $Plack::TempBuffer::MaxMemoryBufferSize; | |||||||||
| 14 | } | ||||||||||
| 15 | |||||||||||
| 16 | 3 | return $class->SUPER::new(@_); | |||||||||
| 17 | } | ||||||||||
| 18 | |||||||||||
| 19 | 1 | 1; | |||||||||