Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 92c35813e0
Fetching contributors…

Cannot retrieve contributors at this time

executable file 16 lines (11 sloc) 0.298 kb
# -*- coding: utf-8 -*-
import sys
from gevent.wsgi import WSGIServer
from httpbin import app
try:
port = int(sys.argv[1])
except (KeyError, ValueError):
port = 5000
print 'Starting httpbin on port {0}'.format(port)
http_server = WSGIServer(('', port), app)
http_server.serve_forever()
Jump to Line
Something went wrong with that request. Please try again.