Hell.HandlerConfig (Hell v0.1.0)

Copy Markdown View Source

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

This is used internally by Hell.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() :: %Hell.HandlerConfig{
  handler_module: nil,
  handshake_timeout: timeout(),
  read_timeout: timeout(),
  silent_terminate_on_error: boolean(),
  transport_module: module()
}

Functions

from_server_config(config)

@spec from_server_config(Hell.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.