d-e-s-o / debuginfod

A crate for interacting with debuginfod servers.
Apache License 2.0
3 stars 1 forks source link

On success, return the server URL #8

Open javierhonduco opened 7 hours ago

javierhonduco commented 7 hours ago

Sometimes it could be useful to know what debuginfod server returned success (e.g. to store long-term in case we need to re-download it later on, or for debugging purposes). Would this be something you would be ok with?

This could be implemented by changing the fetch_debug_info return type, and also return a struct with more information, including the server that returned the data.

d-e-s-o commented 7 hours ago

Yes, we could return a more general Response object from Client::fetch_debug_info that includes this information, I think.