class NoReferrerWhenDowngradePolicy(ReferrerPolicy): (source)
Known subclasses: scrapy.spidermiddlewares.referer.DefaultReferrerPolicy
https://www.w3.org/TR/referrer-policy/#referrer-policy-no-referrer-when-downgrade The "no-referrer-when-downgrade" policy sends a full URL along with requests from a TLS-protected environment settings object to a potentially trustworthy URL, and requests from clients which are not TLS-protected to any origin. Requests from TLS-protected clients to non-potentially trustworthy URLs, on the other hand, will contain no referrer information. A Referer HTTP header will not be sent. This is a user agent's default behavior, if no policy is otherwise specified.
Method | referrer |
Undocumented |
Inherited from ReferrerPolicy
:
Method | origin |
Return serialized origin (scheme, host, path) for a request or response URL. |
Method | origin |
Undocumented |
Method | potentially |
Undocumented |
Method | strip |
https://www.w3.org/TR/referrer-policy/#strip-url |
Method | stripped |
Undocumented |
Method | tls |
Undocumented |
Class Variable | name |
Undocumented |