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.
106 |
# File 'sig/types.rbs', line 106
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.
104 105 106 |
# File 'sig/types.rbs', line 104 def allow_credentials @allow_credentials end |
#allowed_headers ⇒ Array[String]?
Returns the value of attribute allowed_headers.
101 102 103 |
# File 'sig/types.rbs', line 101 def allowed_headers @allowed_headers end |
#allowed_methods ⇒ Array[String]?
Returns the value of attribute allowed_methods.
100 101 102 |
# File 'sig/types.rbs', line 100 def allowed_methods @allowed_methods end |
#allowed_origins ⇒ Array[String]?
Returns the value of attribute allowed_origins.
99 100 101 |
# File 'sig/types.rbs', line 99 def allowed_origins @allowed_origins end |
#expose_headers ⇒ Array[String]?
Returns the value of attribute expose_headers.
102 103 104 |
# File 'sig/types.rbs', line 102 def expose_headers @expose_headers end |
#max_age ⇒ Integer?
Returns the value of attribute max_age.
103 104 105 |
# File 'sig/types.rbs', line 103 def max_age @max_age end |
Class Method Details
Instance Method Details
#allowed_headers_joined ⇒ String
108 |
# File 'sig/types.rbs', line 108
def allowed_headers_joined: () -> String
|
#allowed_methods_joined ⇒ String
107 |
# File 'sig/types.rbs', line 107
def allowed_methods_joined: () -> String
|
#is_method_allowed ⇒ Boolean
110 |
# File 'sig/types.rbs', line 110
def is_method_allowed: (String method) -> bool
|
#is_origin_allowed ⇒ Boolean
109 |
# File 'sig/types.rbs', line 109
def is_origin_allowed: (String origin) -> bool
|