Skip to content

Provide diagnostic protocol info in response #47

@sagebind

Description

@sagebind

Curl provides several different fields that you can query after a transfer is complete (or in flight?). We should expose some of these as extensions on a Response as they are potentially useful for diagnostics.

Some things that would be nice to have:

  • Effective URI: If redirects were followed, what URI was the last one hit? Could be available on the Response.
  • Total time (from CURLINFO_TOTAL_TIME).
  • Name lookup time (from CURLINFO_NAMELOOKUP_TIME).
  • Connect time (from CURLINFO_CONNECT_TIME).
  • Redirect time (from CURLINFO_REDIRECT_TIME).
  • Redirect count (from CURLINFO_REDIRECT_COUNT).

Metadata

Metadata

Assignees

Labels

featureA new feature!

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions