aio-libs/aiohttp

missing headers_received signal in TraceConfig

Open

#7.386 geöffnet am 20. Juli 2023

Auf GitHub ansehen
 (9 Kommentare) (1 Reaktion) (0 zugewiesene Personen)Python (1.997 Forks)batch import
Hacktoberfestenhancement

Repository-Metriken

Stars
 (14.286 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 5T 2h) (198 gemergte PRs in 30 T)

Beschreibung

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