Class: Spikard::CorsConfig
- Inherits:
-
Object
- Object
- Spikard::CorsConfig
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#allow_credentials ⇒ Boolean?
Returns the value of attribute allow_credentials.
-
#allowed_headers ⇒ Array[String]?
Returns the value of attribute allowed_headers.
-
#allowed_methods ⇒ Array[String]?
Returns the value of attribute allowed_methods.
-
#allowed_origins ⇒ Array[String]?
Returns the value of attribute allowed_origins.
-
#expose_headers ⇒ Array[String]?
Returns the value of attribute expose_headers.
-
#max_age ⇒ Integer?
Returns the value of attribute max_age.
Class Method Summary collapse
Instance Method Summary collapse
- #allowed_headers_joined ⇒ String
- #allowed_methods_joined ⇒ String
-
#initialize ⇒ CorsConfig
constructor
A new instance of CorsConfig.
- #is_method_allowed ⇒ Boolean
- #is_origin_allowed ⇒ Boolean
Constructor Details
#initialize ⇒ CorsConfig
Returns a new instance of CorsConfig.
122 |
# File 'sig/types.rbs', line 122
def initialize: (?allowed_origins: Array[String], ?allowed_methods: Array[String], ?allowed_headers: Array[String], ?expose_headers: Array[String], ?max_age: Integer, ?allow_credentials: bool) -> void
|
Instance Attribute Details
#allow_credentials ⇒ Boolean?
Returns the value of attribute allow_credentials.
120 121 122 |
# File 'sig/types.rbs', line 120 def allow_credentials @allow_credentials end |
#allowed_headers ⇒ Array[String]?
Returns the value of attribute allowed_headers.
117 118 119 |
# File 'sig/types.rbs', line 117 def allowed_headers @allowed_headers end |
#allowed_methods ⇒ Array[String]?
Returns the value of attribute allowed_methods.
116 117 118 |
# File 'sig/types.rbs', line 116 def allowed_methods @allowed_methods end |
#allowed_origins ⇒ Array[String]?
Returns the value of attribute allowed_origins.
115 116 117 |
# File 'sig/types.rbs', line 115 def allowed_origins @allowed_origins end |
#expose_headers ⇒ Array[String]?
Returns the value of attribute expose_headers.
118 119 120 |
# File 'sig/types.rbs', line 118 def expose_headers @expose_headers end |
#max_age ⇒ Integer?
Returns the value of attribute max_age.
119 120 121 |
# File 'sig/types.rbs', line 119 def max_age @max_age end |
Class Method Details
Instance Method Details
#allowed_headers_joined ⇒ String
124 |
# File 'sig/types.rbs', line 124
def allowed_headers_joined: () -> String
|
#allowed_methods_joined ⇒ String
123 |
# File 'sig/types.rbs', line 123
def allowed_methods_joined: () -> String
|
#is_method_allowed ⇒ Boolean
126 |
# File 'sig/types.rbs', line 126
def is_method_allowed: (String method) -> bool
|
#is_origin_allowed ⇒ Boolean
125 |
# File 'sig/types.rbs', line 125
def is_origin_allowed: (String origin) -> bool
|