From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

NAME

Amon2::Web::Response::Callback - [EXPERIMENTAL]callback style psgi response for Amon2

SYNOPSIS

any '/cb' => sub {
my $c = shift;
Amon2::Web::Response::Callback->new(
code => sub {
my $respond = shift;
$respond->([200, [], []]);
}
);
};

DESCRIPTION

This module provides a response object for delayed response/streaming body.

You can embed the AE support, streaming support, etc on Amon2 with this module.

SEE ALSO

Tatsumaki