libplack-test-anyevent-perl

Run plack::test on anyevent-based psgi applications
  https://github.com/hoelzro/plack-test-anyevent
  0
  no reviews



Plack::test::anyevent allows you to easily test your anyevent-based psgi applications. normally, plack::test::mockhttp or plack::test::server work fine for this, but this implementation comes in handy when you'd like to test your streaming results as they come in, or if your application uses long-polling. for non-streaming requests, you can use this module exactly like plack::test::mockhttp; otherwise, you can set up a content handler and call $res->recv. the event loop will then run until the psgi application closes its writer handle or until your test client calls send on the response.