MCPcopy Create free account
hub / github.com/aio-libs/aiohttp / new_headers

Function new_headers

tests/test_client_session.py:1161–1162  ·  view source on GitHub ↗
(session, trace_config_ctx, data)

Source from the content-addressed store, hash-verified

1159 MyClientRequest.headers = self.headers
1160
1161 async def new_headers(session, trace_config_ctx, data):
1162 data.headers["foo"] = "bar"
1163
1164 trace_config = aiohttp.TraceConfig()
1165 trace_config.on_request_start.append(new_headers)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected