refactor(proxy): drop the get_response_headers docstring

This commit is contained in:
yucheng 2026-10-31 13:52:10 -07:00
parent 18bc1d1fd0
commit 0bbc31c260

View file

@ -501,8 +501,6 @@ class HttpPassThroughEndpointHelpers(BasePassthroughUtils):
custom_headers: Mapping[str, str] | None = None,
guardrail_request_data: Sequence[object] = (),
) -> dict:
"""The upstream response headers to relay, plus the call id, ``custom_headers`` and the guardrail headers
for what guardrails recorded in ``guardrail_request_data``."""
# Exclude headers that uvicorn writes itself (server, date) and
# encoding/length headers that don't survive re-serialization.
# If we forward the upstream's Server header, uvicorn adds its