class DICT::TextResponse
- DICT::TextResponse
- DICT::Response
- Reference
- Object
Overview
A response containing a textual body.
Direct Known Subclasses
Defined in:
response.crConstructors
Instance Method Summary
- #body : String
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
Instance methods inherited from class DICT::Response
from_io_more(io : IO)
from_io_more,
status : Status
status,
status_message : String
status_message,
to_s(io : IO)
to_s
Constructor methods inherited from class DICT::Response
new(status : Status | Number, io : IO)
new
Class methods inherited from class DICT::Response
from_io(io : IO)
from_io,
from_io_deep(io : IO)
from_io_deep,
parse_body(io : IO)
parse_body,
parse_params(io : IO, n : Number)parse_params(string : String, n : Number) parse_params
Constructor Detail
Instance Method Detail
def to_s(io : IO)
#
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>