Take the 2008 Git User's Survey and help out! [ hide ]

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)
Fri Mar 14 18:16:03 -0700 2008
commit  0a07adc53a3efabc3e20239a29163d86dd3c47b7
tree    cdfe1f3a96d5f7c361947818b8e8ad3f38edbf81
parent  b128ee31d3751baae5229187a8f6ad865dba63d1
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)