Class: Xberg::ServerConfig
- Inherits:
-
Object
- Object
- Xberg::ServerConfig
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#cors_origins ⇒ Array[String]?
Returns the value of attribute cors_origins.
-
#host ⇒ String?
Returns the value of attribute host.
-
#max_multipart_field_bytes ⇒ Integer?
Returns the value of attribute max_multipart_field_bytes.
-
#max_request_body_bytes ⇒ Integer?
Returns the value of attribute max_request_body_bytes.
-
#port ⇒ Integer?
Returns the value of attribute port.
Class Method Summary collapse
Instance Method Summary collapse
- #cors_allows_all ⇒ Boolean
-
#initialize ⇒ ServerConfig
constructor
A new instance of ServerConfig.
- #is_origin_allowed ⇒ Boolean
- #listen_addr ⇒ String
- #max_multipart_field_mb ⇒ Integer
- #max_request_body_mb ⇒ Integer
Constructor Details
#initialize ⇒ ServerConfig
Returns a new instance of ServerConfig.
568 |
# File 'sig/types.rbs', line 568
def initialize: (?host: String, ?port: Integer, ?cors_origins: Array[String], ?max_request_body_bytes: Integer, ?max_multipart_field_bytes: Integer) -> void
|
Instance Attribute Details
#cors_origins ⇒ Array[String]?
Returns the value of attribute cors_origins.
564 565 566 |
# File 'sig/types.rbs', line 564 def cors_origins @cors_origins end |
#host ⇒ String?
Returns the value of attribute host.
562 563 564 |
# File 'sig/types.rbs', line 562 def host @host end |
#max_multipart_field_bytes ⇒ Integer?
Returns the value of attribute max_multipart_field_bytes.
566 567 568 |
# File 'sig/types.rbs', line 566 def max_multipart_field_bytes @max_multipart_field_bytes end |
#max_request_body_bytes ⇒ Integer?
Returns the value of attribute max_request_body_bytes.
565 566 567 |
# File 'sig/types.rbs', line 565 def max_request_body_bytes @max_request_body_bytes end |
#port ⇒ Integer?
Returns the value of attribute port.
563 564 565 |
# File 'sig/types.rbs', line 563 def port @port end |
Class Method Details
Instance Method Details
#cors_allows_all ⇒ Boolean
570 |
# File 'sig/types.rbs', line 570
def cors_allows_all: () -> bool
|
#is_origin_allowed ⇒ Boolean
571 |
# File 'sig/types.rbs', line 571
def is_origin_allowed: (String origin) -> bool
|
#listen_addr ⇒ String
569 |
# File 'sig/types.rbs', line 569
def listen_addr: () -> String
|
#max_multipart_field_mb ⇒ Integer
573 |
# File 'sig/types.rbs', line 573
def max_multipart_field_mb: () -> Integer
|
#max_request_body_mb ⇒ Integer
572 |
# File 'sig/types.rbs', line 572
def max_request_body_mb: () -> Integer
|