ry / ebb fork watch download tarball
public
Description: web server
Homepage: http://ebb.rubyforge.org
Clone URL: git://github.com/ry/ebb.git
Ryan Dahl (author)
Mon Mar 10 08:24:33 -0700 2008
commit  b88daa796c6eade49e1b15d38ca97aae66d76e8d
tree    5d6535cae8f7d9012e088362b25e8fd85a414146
parent  a92f760d6888ba358bd5ed4934018ab150f2f3c7
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)