Update mitmproxy/README.md
This commit is contained in:
@@ -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
|
```shell
|
||||||
mitmweb
|
mitmweb
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user