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
评论列表
文章目录