Class: Zizq::Client::RawResponse

Inherits:
Data
  • Object
show all
Defined in:
lib/zizq/client.rb,
sig/generated/zizq/client.rbs

Overview

A fully-read HTTP response (status + decoded body), safe to use outside the async reactor that produced it.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



31
32
33
# File 'lib/zizq/client.rb', line 31

def body
  @body
end

#content_typeObject (readonly)

Returns the value of attribute content_type

Returns:

  • (Object)

    the current value of content_type



31
32
33
# File 'lib/zizq/client.rb', line 31

def content_type
  @content_type
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



31
32
33
# File 'lib/zizq/client.rb', line 31

def status
  @status
end

Class Method Details

.members[ :status, :body, :content_type ]

Returns:

  • ([ :status, :body, :content_type ])


26
# File 'sig/generated/zizq/client.rbs', line 26

def self.members: () -> [ :status, :body, :content_type ]

.new(status, body, content_type) ⇒ instance .new(status:, body:, content_type:) ⇒ instance

Overloads:

  • .new(status, body, content_type) ⇒ instance

    Parameters:

    • status (Object)
    • body (Object)
    • content_type (Object)

    Returns:

    • (instance)
  • .new(status:, body:, content_type:) ⇒ instance

    Parameters:

    • status: (Object)
    • body: (Object)
    • content_type: (Object)

    Returns:

    • (instance)


23
24
# File 'sig/generated/zizq/client.rbs', line 23

def self.new: (untyped status, untyped body, untyped content_type) -> instance
| (status: untyped, body: untyped, content_type: untyped) -> instance

Instance Method Details

#members[ :status, :body, :content_type ]

Returns:

  • ([ :status, :body, :content_type ])


28
# File 'sig/generated/zizq/client.rbs', line 28

def members: () -> [ :status, :body, :content_type ]