def on_put(self, request, response):
    response.status = falcon.HTTP_200
response.content_type = 'application/json'
response.body = '{"message": "HTTP PUT method used"}'

def on_delete(self, request, response):
    response.status = falcon.HTTP_200
response.content_type = 'application/json'
response.body = '{"message": "HTTP DELETE method used"}'
api = falcon.API()
api.add_route('/', Handler())
port = 8080
server = pywsgi.WSGIServer(('', port), api)
server.serve_forever()
How to use Gevents with Falcon?