Class: Xberg::ServerConfig
- Inherits:
-
Object
- Object
- Xberg::ServerConfig
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#cors_origins ⇒ Array[String]
readonly
Returns the value of attribute cors_origins.
-
#host ⇒ String
readonly
Returns the value of attribute host.
-
#job_timeout_secs ⇒ Integer
readonly
Returns the value of attribute job_timeout_secs.
-
#max_multipart_field_bytes ⇒ Integer
readonly
Returns the value of attribute max_multipart_field_bytes.
-
#max_request_body_bytes ⇒ Integer
readonly
Returns the value of attribute max_request_body_bytes.
-
#port ⇒ Integer
readonly
Returns the value of attribute port.
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.
2362 |
# File 'sig/types.rbs', line 2362
def initialize: (?host: String, ?port: Integer, ?cors_origins: Array[String], ?max_request_body_bytes: Integer, ?max_multipart_field_bytes: Integer, ?job_timeout_secs: Integer) -> void
|
Instance Attribute Details
#cors_origins ⇒ Array[String] (readonly)
Returns the value of attribute cors_origins.
2357 2358 2359 |
# File 'sig/types.rbs', line 2357 def cors_origins @cors_origins end |
#host ⇒ String (readonly)
Returns the value of attribute host.
2355 2356 2357 |
# File 'sig/types.rbs', line 2355 def host @host end |
#job_timeout_secs ⇒ Integer (readonly)
Returns the value of attribute job_timeout_secs.
2360 2361 2362 |
# File 'sig/types.rbs', line 2360 def job_timeout_secs @job_timeout_secs end |
#max_multipart_field_bytes ⇒ Integer (readonly)
Returns the value of attribute max_multipart_field_bytes.
2359 2360 2361 |
# File 'sig/types.rbs', line 2359 def max_multipart_field_bytes @max_multipart_field_bytes end |
#max_request_body_bytes ⇒ Integer (readonly)
Returns the value of attribute max_request_body_bytes.
2358 2359 2360 |
# File 'sig/types.rbs', line 2358 def max_request_body_bytes @max_request_body_bytes end |
#port ⇒ Integer (readonly)
Returns the value of attribute port.
2356 2357 2358 |
# File 'sig/types.rbs', line 2356 def port @port end |
Instance Method Details
#cors_allows_all ⇒ Boolean
2364 |
# File 'sig/types.rbs', line 2364
def cors_allows_all: () -> bool
|
#is_origin_allowed ⇒ Boolean
2365 |
# File 'sig/types.rbs', line 2365
def is_origin_allowed: (String origin) -> bool
|
#listen_addr ⇒ String
2363 |
# File 'sig/types.rbs', line 2363
def listen_addr: () -> String
|
#max_multipart_field_mb ⇒ Integer
2367 |
# File 'sig/types.rbs', line 2367
def max_multipart_field_mb: () -> Integer
|
#max_request_body_mb ⇒ Integer
2366 |
# File 'sig/types.rbs', line 2366
def max_request_body_mb: () -> Integer
|