Class: Capsium::Package::ResponseRewrite
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Capsium::Package::ResponseRewrite
- Defined in:
- lib/capsium/package/routes_config.rb,
sig/capsium/package/routes_config.rbs
Overview
The "responseRewrite" object of an inherited route (05x-routing section "Route Inheritance"): replaces the served body and/or overrides response headers.
Instance Attribute Summary collapse
-
#body ⇒ String?
Returns the value of attribute body.
-
#headers ⇒ Hash[String, String]?
Returns the value of attribute headers.
Instance Method Summary collapse
-
#initialize ⇒ ResponseRewrite
constructor
A new instance of ResponseRewrite.
- #to_hash ⇒ Hash[String, untyped]
- #to_json ⇒ String
Constructor Details
#initialize ⇒ ResponseRewrite
Returns a new instance of ResponseRewrite.
10 |
# File 'sig/capsium/package/routes_config.rbs', line 10
def initialize: (?body: String? body, ?headers: Hash[String, String]? headers) -> void
|
Instance Attribute Details
#body ⇒ String?
Returns the value of attribute body.
7 8 9 |
# File 'sig/capsium/package/routes_config.rbs', line 7 def body @body end |
#headers ⇒ Hash[String, String]?
Returns the value of attribute headers.
8 9 10 |
# File 'sig/capsium/package/routes_config.rbs', line 8 def headers @headers end |
Instance Method Details
#to_hash ⇒ Hash[String, untyped]
13 |
# File 'sig/capsium/package/routes_config.rbs', line 13
def to_hash: () -> Hash[String, untyped]
|
#to_json ⇒ String
12 |
# File 'sig/capsium/package/routes_config.rbs', line 12
def to_json: (*untyped args) -> String
|