Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Net::HTTPGenericRequest#inspect
inspect
lib/net/http/generic_request.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/net/http/generic_request.rb, line 101
def inspect
"\#<#{self.class} #{@method}>"
end
Returns a string representation of the request:
Example
Net::HTTP::Post.new(uri).inspect # => "#<Net::HTTP::Post POST>"
See also
#flush_buffer
#quote_string
#encode_multipart_form_data
#request_body_permitted?
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0