diff --git a/mitmproxy/README.md b/mitmproxy/README.md index 26fe60c..47fd5ee 100644 --- a/mitmproxy/README.md +++ b/mitmproxy/README.md @@ -1,3 +1,13 @@ +# Retries if failed +```python +def response(flow): + retries = 0 + while flow.response.status_code != 206: + retries += 1 + flow.response = flow.replay().response + print(f"재시도 {retries}: 상태 코드 {flow.response.status_code}") +``` + ```shell mitmweb ```