itty icon indicating copy to clipboard operation
itty copied to clipboard

Added @accept() for HTTP Accept: request header support.

Open cellularmitosis opened this issue 13 years ago • 0 comments

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

cellularmitosis avatar Mar 05 '12 03:03 cellularmitosis