Detailed Description
The usage sharing element accepts no evidence, so a pipeline's accepted evidence, and the cache keys, ETag and Vary header built from it, never depend on it. It shares what it finds in the flow data and in the web request instead, by the same rules as before.
Classes | |
| class | UserAgentElement |
| class | ShareUsageAcceptsNoEvidenceTests |
Functions | |
| usage_element (**settings) | |
| pipeline_with (usage) | |
| request_evidence (headers, path="/") | |
Variables | |
| dict | NO_DEFAULT_ELEMENTS |
| tuple | CHROME |
Function Documentation
◆ pipeline_with()
| pipeline_with | ( | usage | ) |
◆ request_evidence()
| request_evidence | ( | headers, | |
| path = "/" ) |
The evidence the web integration makes from a request.
◆ usage_element()
| usage_element | ( | ** | settings | ) |
A usage sharing element that keeps what it would share, because its package size is never reached, and sends nothing.
Variable Documentation
◆ CHROME
| tuple tests.test_share_usage_accepts_no_evidence.CHROME |
Initial value:
= ("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 "
"(KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36")
◆ NO_DEFAULT_ELEMENTS
| dict tests.test_share_usage_accepts_no_evidence.NO_DEFAULT_ELEMENTS |
Initial value:
= {
"add_javascript_builder": False,
"use_setheader_properties": False,
}
