(flow)
| 1 | def response(flow) -> None: |
| 2 | # add custom headers to be able to check that the request went through the proxy |
| 3 | flow.response.headers["X-Via-Mitmproxy"] = "1" |
| 4 | if flow.client_conn.tls_established: |
| 5 | flow.response.headers["X-Via-Mitmproxy-TLS"] = "1" |
no outgoing calls