Class: Xberg::ServerConfig

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

Instance Attribute Summary collapse

Class Method 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)


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

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_originsArray[String]?

Returns the value of attribute cors_origins.

Returns:

  • (Array[String], nil)


599
600
601
# File 'sig/types.rbs', line 599

def cors_origins
  @cors_origins
end

#hostString?

Returns the value of attribute host.

Returns:

  • (String, nil)


597
598
599
# File 'sig/types.rbs', line 597

def host
  @host
end

#max_multipart_field_bytesInteger?

Returns the value of attribute max_multipart_field_bytes.

Returns:

  • (Integer, nil)


601
602
603
# File 'sig/types.rbs', line 601

def max_multipart_field_bytes
  @max_multipart_field_bytes
end

#max_request_body_bytesInteger?

Returns the value of attribute max_request_body_bytes.

Returns:

  • (Integer, nil)


600
601
602
# File 'sig/types.rbs', line 600

def max_request_body_bytes
  @max_request_body_bytes
end

#portInteger?

Returns the value of attribute port.

Returns:

  • (Integer, nil)


598
599
600
# File 'sig/types.rbs', line 598

def port
  @port
end

Class Method Details

.defaultServerConfig

Returns:



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

def self.default: () -> ServerConfig

Instance Method Details

#cors_allows_allBoolean

Returns:

  • (Boolean)


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

def cors_allows_all: () -> bool

#is_origin_allowedBoolean

Parameters:

  • origin (String)

Returns:

  • (Boolean)


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

def is_origin_allowed: (String origin) -> bool

#listen_addrString

Returns:

  • (String)


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

def listen_addr: () -> String

#max_multipart_field_mbInteger

Returns:

  • (Integer)


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

def max_multipart_field_mb: () -> Integer

#max_request_body_mbInteger

Returns:

  • (Integer)


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

def max_request_body_mb: () -> Integer