ry / ebb fork watch download tarball
public
Description: web server
Homepage: http://ebb.rubyforge.org
Clone URL: git://github.com/ry/ebb.git
Search Repo:
Ryan Dahl (author)
Tue Mar 04 07:16:06 -0800 2008
commit  bcdd79f30839a0ce14d377ec55337a6739b955d3
tree    fd8a150607d861b0dda3354e2511840975e40b42
parent  38aebaab6cc2ec4144c080a94abfab2cdfd71ade
ebb / test / test.py
100644 15 lines (12 sloc) 0.398 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import sys
sys.path.append('/Users/ry/projects/ebb/build/lib.macosx-10.3-ppc-2.5')
import ebb
 
print "hello"
 
def simple_app(environ, start_response):
  """Simplest possible application object"""
  status = '200 OK'
  print repr(environ)
  response_headers = [('Content-type','text/plain')]
  #start_response(status, response_headers)
  return ['Hello world!\n']
 
ebb.start_server(simple_app, 4000)