middleware.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:falcon-marshmallow 作者: ihiji 项目源码 文件源码
def __init__(self, required_methods=JSON_CONTENT_REQUIRED_METHODS):
        # type: (Container) -> None
        """Initialize the middleware

        :param required_methods: a collection of HTTP methods for
            which "application/json" should be required as a
            Content-Type header
        """
        log.debug('JSONEnforcer.__init__(%s)', required_methods)
        self._methods = required_methods
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号