instance method
Net::HTTPGenericRequest#inspect
() -> ::String
inspect
lib/net/http/generic_request.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/net/http/generic_request.rb, line 98
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
#body_stream=
#pretty_print
#body=
#request_body_permitted?
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0