def on_options(self, req, resp):
# NOTE(kgriffs): The default responder returns 200
resp.status = falcon.HTTP_204
# NOTE(kgriffs): This is incorrect, but only return GET so
# that we can verify that the default OPTIONS responder has
# been overridden.
resp.set_header('allow', 'GET')
test_http_method_routing.py 文件源码
python
阅读 17
收藏 0
点赞 0
评论 0
评论列表
文章目录