MVC::Neaf::Request::FakeWriter - part of test suite for Not Even A Framework
This module converts PSGI asynchronous response with callback to a normal straightforward response ([status, header, content]).
use Data::Dumper; use MVC::Neaf::Request::FakeWriter; my $capture = MVC::Neaf::Request::FakeWriter->new; my $result = $capture->respond( $psgi_app_return ); warn Dumper( $result ); # normal PSGI response # aka [ status, [ head...], [content...] ]
Constructor (no args).
Respond to provided callback in PSGI-compatible manner.
Append given data to buffer.