struct HttpCall
- HttpCall
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- Protobuf::Message
Defined in:
cli/data/http_call.crcli/proto/HttpCall.pb.cr
Constant Summary
-
FIELDS =
{1 => {name: :url, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 2 => {name: :method, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 3 => {name: :header, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 4 => {name: :body, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 5 => {name: :requested_at, pb_type: Datetime, crystal_type: Datetime, cast_type: Datetime, native: false, optional: false, repeated: false, default: nil, packed: false}, 6 => {name: :responsed_at, pb_type: Datetime, crystal_type: Datetime, cast_type: Datetime?, native: false, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :status, pb_type: :int32, crystal_type: Int32, cast_type: Int32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :res_header, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :res_body, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
-
Fields =
{} of String => Field
Constructors
- .new(url : String, method : String, header : String, body : String, requested_at : Datetime, responsed_at : Datetime | Nil = nil, status : Int32 | Nil = nil, res_header : String | Nil = nil, res_body : String | Nil = nil)
- .new(buf : Protobuf::Buffer)
- .new(pull : JSON::PullParser)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #[]=(key : String, val)
- #[]?(key : String)
- #body : String
- #body=(body : String)
- #header : String
- #header=(header : String)
-
#inspect(io : IO)
Appends this struct's name and instance variables names and values to the given IO.
- #method : String
- #method=(method : String)
- #requested_at : Datetime
- #requested_at=(requested_at : Datetime)
- #res_body : String | Nil
- #res_body=(res_body : String | Nil)
- #res_header : String | Nil
- #res_header=(res_header : String | Nil)
- #responsed_at : Datetime | Nil
- #responsed_at=(responsed_at : Datetime | Nil)
- #status : Int32 | Nil
- #status=(status : Int32 | Nil)
- #to_hash
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
-
#to_s(io : IO)
Same as
#inspect(io)
. - #uri
- #url : String
- #url=(url : String)
Constructor Detail
def self.new(url : String, method : String, header : String, body : String, requested_at : Datetime, responsed_at : Datetime | Nil = nil, status : Int32 | Nil = nil, res_header : String | Nil = nil, res_body : String | Nil = nil)
#
Class Method Detail
Instance Method Detail
def inspect(io : IO)
#
Description copied from struct Struct
Appends this struct's name and instance variables names and values to the given IO.
struct Point
def initialize(@x : Int32, @y : Int32)
end
end
p1 = Point.new 1, 2
p1.to_s # "Point(@x=1, @y=2)"
p1.inspect # "Point(@x=1, @y=2)"