Class: Spikard::Response
- Inherits:
-
Object
- Object
- Spikard::Response
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#content ⇒ json_value?
Returns the value of attribute content.
-
#headers ⇒ Hash[String, String]?
Returns the value of attribute headers.
-
#status_code ⇒ Integer?
Returns the value of attribute status_code.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Response
constructor
A new instance of Response.
- #set_cookie ⇒ void
- #set_header ⇒ void
Constructor Details
#initialize ⇒ Response
Returns a new instance of Response.
196 |
# File 'sig/types.rbs', line 196
def initialize: (?content: json_value, ?status_code: Integer, ?headers: Hash[String, String]) -> void
|
Instance Attribute Details
#content ⇒ json_value?
Returns the value of attribute content.
192 193 194 |
# File 'sig/types.rbs', line 192 def content @content end |
#headers ⇒ Hash[String, String]?
Returns the value of attribute headers.
194 195 196 |
# File 'sig/types.rbs', line 194 def headers @headers end |
#status_code ⇒ Integer?
Returns the value of attribute status_code.
193 194 195 |
# File 'sig/types.rbs', line 193 def status_code @status_code end |
Class Method Details
Instance Method Details
#set_cookie ⇒ void
This method returns an undefined value.
198 |
# File 'sig/types.rbs', line 198
def set_cookie: (String key, String value, bool secure, bool http_only, ?Integer max_age, ?String domain, ?String path, ?String same_site) -> void
|
#set_header ⇒ void
This method returns an undefined value.
197 |
# File 'sig/types.rbs', line 197
def set_header: (String key, String value) -> void
|