Skip to content
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

Add path and headers to Request inspect method #25

Closed
wants to merge 1 commit into from

Conversation

adam12
Copy link

@adam12 adam12 commented May 9, 2021

I find having the path and headers when inspecting a request to be handy.

>> Net::HTTP::Get.new "/"
=> #<Net::HTTP::Get GET path="/" headers={"accept-encoding"=>["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"], "accept"=>["*/*"], "user-agent"=>["Ruby"]}>

@hsbt hsbt force-pushed the enhance-request-inspect-method branch from d1dd4a0 to f93f138 Compare August 31, 2023 01:21
@nobu
Copy link
Member

nobu commented Oct 30, 2023

How about to add pretty_print and keeping inspect as-is, like #160?

@adam12
Copy link
Author

adam12 commented Oct 30, 2023

@nobu seems reasonable to me.

@adam12
Copy link
Author

adam12 commented Jan 6, 2024

Closing in favour of nobu's suggestion.

@adam12 adam12 closed this Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants