Case-insensitive pop of the first matching key from a header dict.
(d: dict[str, str], *names: str)
| 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: |
nothing calls this directly
no outgoing calls
no test coverage detected