MCPcopy Create free account
hub / github.com/RASAAS/docmcp-knowledge / _make_session

Function _make_session

scripts/fetch_nifdc_standards.py:71–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69
70
71def _make_session() -> requests.Session:
72 s = requests.Session()
73 s.headers.update(
74 {
75 "User-Agent": USER_AGENT,
76 "Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8",
77 "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
78 }
79 )
80 return s
81
82
83def _request_with_retry(

Callers 1

fetch_allFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected