aio-libs / aio-libs/aiohttp

missing headers_received signal in TraceConfig

Aperta
#7,386 9 commenti 1 reazione 0 assegnatari Vedi su GitHub
enhancement Hacktoberfest
Lingua principale
Python
Stelle
16.5k
Fork
2.4k
Merge medio
17h 22m
PR unite (30g)
212

Descrizione

### Is your feature request related to a problem?

aiohttp's [client tracing][1] 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

- [X] I agree to follow the aio-libs Code of Conduct

[1]: https://docs.aiohttp.org/en/stable/tracing_reference.html

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.