Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Amon2::Web::Response::UserbContributed Perl DAmon2::Web::Response::Callback(3)

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

perl v5.24.1			  2017-07-02 Amon2::Web::Response::Callback(3)

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Amon2::Web::Response::Callback&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help