Skip to content

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants