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)


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

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

Instance Attribute Details

#bodyString (readonly)

Returns the value of attribute body.

Returns:

  • (String)


387
388
389
# File 'sig/types.rbs', line 387

def body
  @body
end

#headersHash[String, String] (readonly)

Returns the value of attribute headers.

Returns:

  • (Hash[String, String])


386
387
388
# File 'sig/types.rbs', line 386

def headers
  @headers
end

#statusInteger (readonly)

Returns the value of attribute status.

Returns:

  • (Integer)


385
386
387
# File 'sig/types.rbs', line 385

def status
  @status
end

Instance Method Details

#headerString?

Parameters:

  • name (String)

Returns:

  • (String, nil)


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

def header: (String name) -> String?

#textString

Returns:

  • (String)


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

def text: () -> String