aio-libs/aiohttp

missing headers_received signal in TraceConfig

Open

#7,386 opened on Jul 20, 2023

View on GitHub
 (9 comments) (1 reaction) (0 assignees)Python (1,997 forks)batch import
Hacktoberfestenhancement

Repository metrics

Stars
 (14,286 stars)
PR merge metrics
 (Avg merge 5d 2h) (198 merged PRs in 30d)

Description

Is your feature request related to a problem?

aiohttp's client tracing docs state the request flow has a stage named headers_received. I suppose this means response headers received. But TraceConfig has no declared signal handler for it.

Describe the solution you'd like

Tracing when response headers are received is usefull for early request time measuring. A new signal should be added at TraceConfig.on_response_headers_received.

Describe alternatives you've considered

None

Related component

Client

Additional context

No response

Code of Conduct

  • I agree to follow the aio-libs Code of Conduct

Contributor guide