Skip to content

Support for verbose mode: log HTTP request and response #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mkuratczyk opened this issue Mar 5, 2025 · 1 comment
Open

Support for verbose mode: log HTTP request and response #51

mkuratczyk opened this issue Mar 5, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@mkuratczyk
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

When things don't work the way I'd expect, I usually want to see what was actually sent to the server and what the response was exactly. Something similar to curl's -v option would immediately show whether the problem is with me/rabbitmqadmin-ng/rabbitmq-http-api-rs or is it RabbitMQ that handles the intended request in a surprising way.

Describe the solution you'd like

-v / --verbose flag

Describe alternatives you've considered

No response

Additional context

No response

@mkuratczyk mkuratczyk added the enhancement New feature or request label Mar 5, 2025
@michaelklishin
Copy link
Collaborator

I was thinking about adding a minimalistic version of logging for key request values.

Similarly to what we report for 404 responses now, a URL and a body.

I am not sure reqwest would make it easy to log the headers in addition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants