MVC::Neaf::Request::FakeWriter - part of test suite for Not Even A Framework
See MVC::Neaf and MVC::Neaf::Request::PSGI. Unless you plan to contribute to framework itself, this module is useless.
This module converts PSGI asynchronous response with callback to a normal straightforward response ([status, header, content]).
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.
This module is part of MVC::Neaf suite.
Copyright 2016-2019 Konstantin S. Uvarin firstname.lastname@example.org.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install MVC::Neaf, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.