Permalink
Browse files

Added a test dispatcher.

  • Loading branch information...
1 parent 0b4686c commit eeca5f73202cbacd0303d520f1b323d2aa1b5709 @brosner committed Jul 11, 2008
Showing with 8 additions and 0 deletions.
  1. +8 −0 bosnowsgi.py
View
@@ -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):
"""

0 comments on commit eeca5f7

Please sign in to comment.