pylover / nanohttp

A very micro HTTP framework.
http://nanohttp.org
Other
46 stars 13 forks source link

Server Halt: prevent_form and RestController #124

Closed pylover closed 6 years ago

pylover commented 6 years ago
from nanohttp import *

class Root(RestController):
    @text(prevent_form=True)
    def foo(self):
        return 'bar'
curl localhost:8080 -Xfoo