(request, response, res_etag, res_last_modified)
| 122 | return response, res_etag, res_last_modified |
| 123 | |
| 124 | def _post_process_request(request, response, res_etag, res_last_modified): |
| 125 | # Set relevant headers on the response if they don't already exist |
| 126 | # and if the request method is safe. |
| 127 | if request.method in ("GET", "HEAD"): |
| 128 | if res_last_modified and not response.has_header("Last-Modified"): |
| 129 | response.headers["Last-Modified"] = http_date(res_last_modified) |
| 130 | if res_etag: |
| 131 | response.headers.setdefault("ETag", res_etag) |
| 132 | |
| 133 | if iscoroutinefunction(func): |
| 134 |
no test coverage detected