Commit 5d8fb0b
committed
feat(proxy-checker): add serialization helpers to ProxyChekerResult
- import dataclasses.asdict and json
- add ProxyChekerResult.to_dict() to produce a plain dict
- add ProxyChekerResult.to_json() to produce a JSON string
- add ProxyChekerResult.__str__() to return JSON for easy printing
Improves result serialization and logging for proxy check results.1 parent 5c09530 commit 5d8fb0b
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
0 commit comments