class NGHTTP::HTTPError
- NGHTTP::HTTPError
- Exception
- Reference
- Object
Defined in:
nghttp/http_error.crConstructors
Instance Method Summary
- #env : NGHTTP::HTTPEnv
-
#inspect
Returns an unambiguous and information-rich string representation of this object, typically intended for developers.
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
Constructor Detail
Instance Method Detail
def inspect
#
Description copied from class Object
Returns an unambiguous and information-rich string representation of this object, typically intended for developers.
This method should usually not be overridden. It delegates to
#inspect(IO)
which can be overridden for custom implementations.
Also see #to_s
.
Description copied from class Reference
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>