toastdriven/itty — pull request #15 by cellularmitosis (2012-03-05 03:01:16+00:00)
Title: Added @accept() for HTTP Accept: request header support.

Hi,

I wanted to be able to do this:

@get('/')
@accept('application/json')
def index(request):
return "here we would return JSON\n"

So I did it.

Let me know what you think :)

-jason