MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / _get_request_fingerprint

Method _get_request_fingerprint

src/services/file_cache.py:45–57  ·  view source on GitHub ↗

读取当前请求链路里绑定的浏览器指纹。

(self)

Source from the content-addressed store, hash-verified

43 return self.default_timeout <= 0
44
45 def _get_request_fingerprint(self) -> Optional[Dict[str, Any]]:
46 """读取当前请求链路里绑定的浏览器指纹。"""
47 if not self.flow_client or not hasattr(self.flow_client, "get_request_fingerprint"):
48 return None
49
50 try:
51 fingerprint = self.flow_client.get_request_fingerprint()
52 if isinstance(fingerprint, dict) and fingerprint:
53 return fingerprint
54 except Exception as e:
55 debug_logger.log_warning(f"Get request fingerprint failed: {str(e)}")
56
57 return None
58
59 async def _resolve_download_proxy(
60 self,

Callers 1

download_and_cacheMethod · 0.95

Calls 2

log_warningMethod · 0.80

Tested by

no test coverage detected