Class: Spikard::ResponseSnapshot

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResponseSnapshot

Returns a new instance of ResponseSnapshot.

Parameters:

  • status: (Integer)
  • headers: (Hash[String, String])
  • body: (String)


409
# File 'sig/types.rbs', line 409

def initialize: (status: Integer, headers: Hash[String, String], body: String) -> void

Instance Attribute Details

#bodyString (readonly)

Returns the value of attribute body.

Returns:

  • (String)


407
408
409
# File 'sig/types.rbs', line 407

def body
  @body
end

#headersHash[String, String] (readonly)

Returns the value of attribute headers.

Returns:

  • (Hash[String, String])


406
407
408
# File 'sig/types.rbs', line 406

def headers
  @headers
end

#statusInteger (readonly)

Returns the value of attribute status.

Returns:

  • (Integer)


405
406
407
# File 'sig/types.rbs', line 405

def status
  @status
end

Instance Method Details

#headerString?

Parameters:

  • name (String)

Returns:

  • (String, nil)


411
# File 'sig/types.rbs', line 411

def header: (String name) -> String?

#textString

Returns:

  • (String)


410
# File 'sig/types.rbs', line 410

def text: () -> String