Created
May 27, 2013 13:54
-
-
Save berekuk/5657189 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use Dancer2; | |
use Coro::AnyEvent; | |
set logger => 'console'; | |
set log => 'core'; | |
get '/:foo' => sub { | |
Coro::AnyEvent::sleep 1; | |
return params->{'foo'}; | |
}; | |
dance; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plackup --port 3000 --server Corona ./app.pl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while true; do wget -q -O - 'http://localhost:3000/bar';echo; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while true; do wget -q -O - 'http://localhost:3000/foo';echo; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment