Class: Spikard::ResponseSnapshot
- Inherits:
-
Object
- Object
- Spikard::ResponseSnapshot
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#body ⇒ String
readonly
Returns the value of attribute body.
-
#headers ⇒ Hash[String, String]
readonly
Returns the value of attribute headers.
-
#status ⇒ Integer
readonly
Returns the value of attribute status.
Instance Method Summary collapse
- #header ⇒ String?
-
#initialize ⇒ ResponseSnapshot
constructor
A new instance of ResponseSnapshot.
- #text ⇒ String
Constructor Details
#initialize ⇒ ResponseSnapshot
Returns a new instance of ResponseSnapshot.
409 |
# File 'sig/types.rbs', line 409
def initialize: (status: Integer, headers: Hash[String, String], body: String) -> void
|
Instance Attribute Details
#body ⇒ String (readonly)
Returns the value of attribute body.
407 408 409 |
# File 'sig/types.rbs', line 407 def body @body end |
#headers ⇒ Hash[String, String] (readonly)
Returns the value of attribute headers.
406 407 408 |
# File 'sig/types.rbs', line 406 def headers @headers end |
#status ⇒ Integer (readonly)
Returns the value of attribute status.
405 406 407 |
# File 'sig/types.rbs', line 405 def status @status end |
Instance Method Details
#header ⇒ String?
411 |
# File 'sig/types.rbs', line 411
def header: (String name) -> String?
|
#text ⇒ String
410 |
# File 'sig/types.rbs', line 410
def text: () -> String
|