File: timeout.cgi

package info (click to toggle)
python-httplib2 0.9.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,744 kB
  • ctags: 1,237
  • sloc: python: 5,190; makefile: 103
file content (15 lines) | stat: -rwxr-xr-x 269 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python
import os
import time

# Always returns an empty response body
# and adds in the X-Method: header with the
# method that was sent to the CGI
time.sleep(3)

print "Status: 200 Ok"
print "Content-type: text/plain"
print ""
print "3 seconds later"