Class: Xberg::ServerConfig

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeServerConfig

Returns a new instance of ServerConfig.

Parameters:

  • host: (String)
  • port: (Integer)
  • cors_origins: (Array[String])
  • max_request_body_bytes: (Integer)
  • max_multipart_field_bytes: (Integer)
  • job_timeout_secs: (Integer)


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_originsArray[String] (readonly)

Returns the value of attribute cors_origins.

Returns:

  • (Array[String])


2357
2358
2359
# File 'sig/types.rbs', line 2357

def cors_origins
  @cors_origins
end

#hostString (readonly)

Returns the value of attribute host.

Returns:

  • (String)


2355
2356
2357
# File 'sig/types.rbs', line 2355

def host
  @host
end

#job_timeout_secsInteger (readonly)

Returns the value of attribute job_timeout_secs.

Returns:

  • (Integer)


2360
2361
2362
# File 'sig/types.rbs', line 2360

def job_timeout_secs
  @job_timeout_secs
end

#max_multipart_field_bytesInteger (readonly)

Returns the value of attribute max_multipart_field_bytes.

Returns:

  • (Integer)


2359
2360
2361
# File 'sig/types.rbs', line 2359

def max_multipart_field_bytes
  @max_multipart_field_bytes
end

#max_request_body_bytesInteger (readonly)

Returns the value of attribute max_request_body_bytes.

Returns:

  • (Integer)


2358
2359
2360
# File 'sig/types.rbs', line 2358

def max_request_body_bytes
  @max_request_body_bytes
end

#portInteger (readonly)

Returns the value of attribute port.

Returns:

  • (Integer)


2356
2357
2358
# File 'sig/types.rbs', line 2356

def port
  @port
end

Instance Method Details

#cors_allows_allBoolean

Returns:

  • (Boolean)


2364
# File 'sig/types.rbs', line 2364

def cors_allows_all: () -> bool

#is_origin_allowedBoolean

Parameters:

  • origin (String)

Returns:

  • (Boolean)


2365
# File 'sig/types.rbs', line 2365

def is_origin_allowed: (String origin) -> bool

#listen_addrString

Returns:

  • (String)


2363
# File 'sig/types.rbs', line 2363

def listen_addr: () -> String

#max_multipart_field_mbInteger

Returns:

  • (Integer)


2367
# File 'sig/types.rbs', line 2367

def max_multipart_field_mb: () -> Integer

#max_request_body_mbInteger

Returns:

  • (Integer)


2366
# File 'sig/types.rbs', line 2366

def max_request_body_mb: () -> Integer