(self, response: HTTPResponse)
| 46 | return {} |
| 47 | |
| 48 | def apply(self, response: HTTPResponse) -> HTTPResponse: |
| 49 | updated_headers = self.update_headers(response) |
| 50 | |
| 51 | if updated_headers: |
| 52 | response.headers.update(updated_headers) |
| 53 | warning_header_value = self.warning(response) |
| 54 | if warning_header_value is not None: |
| 55 | response.headers.update({"Warning": warning_header_value}) |
| 56 | |
| 57 | return response |
| 58 | |
| 59 | |
| 60 | class OneDayCache(BaseHeuristic): |
no test coverage detected