MCPcopy Create free account
hub / github.com/C3ting/ARL / work

Method work

app/services/probeHTTP.py:26–34  ·  view source on GitHub ↗
(self, target)

Source from the content-addressed store, hash-verified

24 return _targets
25
26 def work(self, target):
27 conn = utils.http_req(target, 'get', timeout=(3, 2), stream=True)
28 conn.close()
29
30 if conn.status_code in [502, 504, 501, 422, 410]:
31 logger.debug(f"{target} 状态码为 {conn.status_code} 跳过")
32 return
33
34 self.sites.append(target)
35
36 def run(self):
37 t1 = time.time()

Callers

nothing calls this directly

Calls 1

http_reqMethod · 0.45

Tested by

no test coverage detected