Skip to content

Commit

Permalink
Added a test dispatcher.
Browse files Browse the repository at this point in the history
  • Loading branch information
brosner committed Jul 11, 2008
1 parent 0b4686c commit eeca5f7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bosnowsgi.py
Expand Up @@ -13,6 +13,14 @@

class ImproperlyConfigured(Exception):
pass

def test_dispatcher(environ, start_response):
status = "200 OK"
output = "this is the test dispatcher of bosnowsgi"
response_headers = [("Content-type", "text/plain"),
("Content-Length", str(len(output)))]
start_response(status, response_headers)
return [output]

class WSGIServerProcess(object):
"""
Expand Down

0 comments on commit eeca5f7

Please sign in to comment.