Created
April 23, 2013 20:55
-
-
Save hanula/5447311 to your computer and use it in GitHub Desktop.
Falcon's bench suite for Pyramid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def create_pyramid(body, headers): | |
from pyramid.response import Response | |
from pyramid.config import Configurator | |
def hello(request): | |
return Response(body, headers=headers, content_type='text/plain') | |
config = Configurator() | |
config.add_route('hello', '/hello/:account_id/test') | |
config.add_view(hello, route_name='hello') | |
return config.make_wsgi_app() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment