Class: Spikard::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:



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

def initialize: (?host: String, ?port: Integer, ?workers: Integer, ?enable_request_id: bool, ?max_body_size: Integer, ?request_timeout: Integer, ?compression: CompressionConfig, ?rate_limit: RateLimitConfig, ?jwt_auth: JwtConfig, ?api_key_auth: ApiKeyConfig, ?static_files: Array[StaticFilesConfig], ?graceful_shutdown: bool, ?shutdown_timeout: Integer, ?asyncapi: AsyncApiConfig, ?openapi: OpenApiConfig, ?jsonrpc: JsonRpcConfig, ?grpc: GrpcConfig, ?background_tasks: BackgroundTaskConfig, ?enable_http_trace: bool) -> void

Instance Attribute Details

#api_key_authApiKeyConfig?

Returns the value of attribute api_key_auth.

Returns:



249
250
251
# File 'sig/types.rbs', line 249

def api_key_auth
  @api_key_auth
end

#asyncapiAsyncApiConfig?

Returns the value of attribute asyncapi.

Returns:



253
254
255
# File 'sig/types.rbs', line 253

def asyncapi
  @asyncapi
end

#background_tasksBackgroundTaskConfig?

Returns the value of attribute background_tasks.

Returns:



257
258
259
# File 'sig/types.rbs', line 257

def background_tasks
  @background_tasks
end

#compressionCompressionConfig?

Returns the value of attribute compression.

Returns:



246
247
248
# File 'sig/types.rbs', line 246

def compression
  @compression
end

#enable_http_traceBoolean?

Returns the value of attribute enable_http_trace.

Returns:

  • (Boolean, nil)


258
259
260
# File 'sig/types.rbs', line 258

def enable_http_trace
  @enable_http_trace
end

#enable_request_idBoolean?

Returns the value of attribute enable_request_id.

Returns:

  • (Boolean, nil)


243
244
245
# File 'sig/types.rbs', line 243

def enable_request_id
  @enable_request_id
end

#graceful_shutdownBoolean?

Returns the value of attribute graceful_shutdown.

Returns:

  • (Boolean, nil)


251
252
253
# File 'sig/types.rbs', line 251

def graceful_shutdown
  @graceful_shutdown
end

#grpcGrpcConfig?

Returns the value of attribute grpc.

Returns:



256
257
258
# File 'sig/types.rbs', line 256

def grpc
  @grpc
end

#hostString?

Returns the value of attribute host.

Returns:

  • (String, nil)


240
241
242
# File 'sig/types.rbs', line 240

def host
  @host
end

#jsonrpcJsonRpcConfig?

Returns the value of attribute jsonrpc.

Returns:



255
256
257
# File 'sig/types.rbs', line 255

def jsonrpc
  @jsonrpc
end

#jwt_authJwtConfig?

Returns the value of attribute jwt_auth.

Returns:



248
249
250
# File 'sig/types.rbs', line 248

def jwt_auth
  @jwt_auth
end

#max_body_sizeInteger?

Returns the value of attribute max_body_size.

Returns:

  • (Integer, nil)


244
245
246
# File 'sig/types.rbs', line 244

def max_body_size
  @max_body_size
end

#openapiOpenApiConfig?

Returns the value of attribute openapi.

Returns:



254
255
256
# File 'sig/types.rbs', line 254

def openapi
  @openapi
end

#portInteger?

Returns the value of attribute port.

Returns:

  • (Integer, nil)


241
242
243
# File 'sig/types.rbs', line 241

def port
  @port
end

#rate_limitRateLimitConfig?

Returns the value of attribute rate_limit.

Returns:



247
248
249
# File 'sig/types.rbs', line 247

def rate_limit
  @rate_limit
end

#request_timeoutInteger?

Returns the value of attribute request_timeout.

Returns:

  • (Integer, nil)


245
246
247
# File 'sig/types.rbs', line 245

def request_timeout
  @request_timeout
end

#shutdown_timeoutInteger?

Returns the value of attribute shutdown_timeout.

Returns:

  • (Integer, nil)


252
253
254
# File 'sig/types.rbs', line 252

def shutdown_timeout
  @shutdown_timeout
end

#static_filesArray[StaticFilesConfig]?

Returns the value of attribute static_files.

Returns:



250
251
252
# File 'sig/types.rbs', line 250

def static_files
  @static_files
end

#workersInteger?

Returns the value of attribute workers.

Returns:

  • (Integer, nil)


242
243
244
# File 'sig/types.rbs', line 242

def workers
  @workers
end

Class Method Details

.defaultServerConfig

Returns:



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

def self.default: () -> ServerConfig