ThousandIsland.HandlerConfig (Thousand Island v1.4.3)

View Source

A minimal config struct containing only the fields needed by connection handlers.

This is used internally by ThousandIsland.Handler

Summary

Functions

Creates a HandlerConfig from a ServerConfig, extracting only the fields needed by connection handlers. This should be called once per acceptor at initialization.

Types

t()

@type t() :: %ThousandIsland.HandlerConfig{
  handler_module: nil,
  read_timeout: timeout(),
  silent_terminate_on_error: boolean(),
  transport_module: module()
}

Functions

from_server_config(config)

@spec from_server_config(ThousandIsland.ServerConfig.t()) :: t()

Creates a HandlerConfig from a ServerConfig, extracting only the fields needed by connection handlers. This should be called once per acceptor at initialization.