Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 16 lines (11 sloc) 476 Bytes
#!/usr/bin/env python
from brubeck.request_handling import Brubeck, render
from brubeck.connections import Mongrel2Connection
app = Brubeck(msg_conn=Mongrel2Connection('tcp://',
@app.add_route('^/brubeck', method='GET')
def foo(application, message):
name = message.get_argument('name', 'dude')
body = 'Take five, %s!' % name
return render(body, 200, 'OK', {})
Something went wrong with that request. Please try again.