debuginfod: PR27277 - Describe retrieved files when verbose
authorNoah Sanci <nsanci@redhat.com>
Tue, 10 Aug 2021 15:21:35 +0000 (11:21 -0400)
committerNoah Sanci <nsanci@redhat.com>
Thu, 16 Sep 2021 14:21:15 +0000 (10:21 -0400)
commitff5056c7d78b925fbd49997dc88183f6c859ac7f
tree9ab1ff609f41406578a6901a841678f193e94db0
parent00f0fa77c995684060aa8ea6fe7276ed9b593d11
debuginfod: PR27277 - Describe retrieved files when verbose

Allow users, with enough verbosity, to print the HTTP response headers
upon retrieving a file. These files may include several custome http
response headers such as X-DEBUGINFOD-FILE, X-DEBUGINFOD-SIZE, and
X-DEBUGINFOD-ARCHIVE. These headers are added from the daemon, in
debuginfod.cxx.

E.g output:

HTTP/1.1 200 OK
Connection: Keep-Alive
Content-Length: 4095072
Cache-Control: public
Last-Modified: Thu, 09 Sep 2021 19:06:40 GMT
X-FILE: debuginfod
X-FILE-SIZE: 4095072
Content-Type: application/octet-stream
Date: Fri, 10 Sep 2021 16:38:06 GMT

https://sourceware.org/bugzilla/show_bug.cgi?id=27277

Signed-off-by: Noah Sanci <nsanci@redhat.com>
debuginfod/ChangeLog
debuginfod/debuginfod-client.c
debuginfod/debuginfod.cxx
doc/ChangeLog
doc/debuginfod-find.1
doc/debuginfod.8
tests/ChangeLog
tests/Makefile.am
tests/run-debuginfod-response-headers.sh [new file with mode: 0755]