MCPcopy Create free account
hub / github.com/VitoHowe/glm-coding / _pop_header

Method _pop_header

app/clients/fingerprint_http.py:170–176  ·  view source on GitHub ↗

Case-insensitive pop of the first matching key from a header dict.

(d: dict[str, str], *names: str)

Source from the content-addressed store, hash-verified

168 kwargs["data"] = form_body
169 if proxy_url:
170 kwargs["proxies"] = {"http": proxy_url, "https": proxy_url}
171 else:
172 kwargs["proxies"] = {"all": ""}
173 return session.request(**kwargs)
174 except Exception as exc:
175 raise UpstreamRequestError(
176 "上游请求失败",
177 details={"transport": self.transport_name, "url": url, "reason": str(exc)},
178 ) from exc
179 finally:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected