MATSUNO★Tokuhiro > Amon2 > Amon2::Web::Response::Callback

Download:
Amon2-6.10.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source  

NAME ^

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

SYNOPSIS ^

    use Amon2::Lite;

    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

syntax highlighting: