Settings¶
Configuration of this library.
-
kw.platform.settings.KIWI_ENABLE_RESTRICTION_OF_REQUESTS= 1¶ Enable inspection of requests’ User-Agent header and their restriction if not compliant with
KW-RFC-22,Trueby default.
-
kw.platform.settings.KIWI_REQUESTS_RESTRICT_DATETIME= '2019-08-01T13:00:00'¶ Datetime when to start refusing requests from services which do not comply with the
KW-RFC-22standard. Seekw.platform.wsgi.user_agent_middleware.
-
kw.platform.settings.KIWI_REQUESTS_SLOWDOWN_DATETIME= '2019-07-24T13:00:00'¶ Datetime when to start slowing down requests from services which do not comply with the
KW-RFC-22standard. Seekw.platform.wsgi.user_agent_middleware.
-
kw.platform.settings.KIWI_RESTRICT_USER_AGENT_MESSAGE= 'Invalid User-Agent: does not comply with KW-RFC-22'¶ Status message sent in response to requests with invalid User-Agent.