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.
180 |
# File 'sig/types.rbs', line 180
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.
176 177 178 |
# File 'sig/types.rbs', line 176 def content @content end |
#headers ⇒ Hash[String, String]?
Returns the value of attribute headers.
178 179 180 |
# File 'sig/types.rbs', line 178 def headers @headers end |
#status_code ⇒ Integer?
Returns the value of attribute status_code.
177 178 179 |
# File 'sig/types.rbs', line 177 def status_code @status_code end |
Class Method Details
Instance Method Details
#set_cookie ⇒ void
This method returns an undefined value.
182 |
# File 'sig/types.rbs', line 182
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.
181 |
# File 'sig/types.rbs', line 181
def set_header: (String key, String value) -> void
|