public
Created

Falcon's bench suite for Pyramid

  • Download Gist
gistfile1.py
Python
1 2 3 4 5 6 7 8 9 10 11 12
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()

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.