ry / ebb fork watch download tarball
public
Description: web server
Homepage: http://ebb.rubyforge.org
Clone URL: git://github.com/ry/ebb.git
ryah (author)
Sun Apr 06 07:52:21 -0700 2008
commit  3a056d749c4e73b92c0ce3b7d325005a555d6a69
tree    bfc2cc03fe2d2652617cdd777b594bfb3a10ca91
parent  ea175093f9ef1bd0f8add2a478dc6b80d6bb1dc1 parent  7b306f2dc60be6209b71f31b92db5a27b62e540f
ebb / test / test.py
100644 14 lines (12 sloc) 0.442 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import sys
sys.path.append('/Users/ry/projects/ebb/build/lib.macosx-10.3-ppc-2.5')
import ebb
# os.path.abspath(__file__)
print "hello"
 
def simple_app(environ, start_response):
  """Simplest possible application object"""
  status = '200 OK'
  response_headers = [('Content-type','text/plain')]
  start_response(status, response_headers)
  return ["Hello world!\n", "Something else!", "blllllaaaaaaaah\n"]
 
ebb.start_server(simple_app, 4001)