Created
July 12, 2012 15:06
-
-
Save sebastien/3098696 to your computer and use it in GitHub Desktop.
Generates a timeout in Retro
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
import time | |
from retro import * | |
class Timeout(Component): | |
@on(GET="{_:rest}") | |
def timeout( self, request, _ ): | |
time.sleep(20) | |
return request.respond("OK!") | |
run(Application(Timeout())) | |
# EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment