v0.3.0

Released: 2026-05-01 Tag: v0.3.0 Type: Minor — new feature (server runtime limits) PR: #36 — feat/issue-28-http-server-timeout-header-size

What Changed

config — Server runtime limits model

Added ReadTimeout, WriteTimeout, and MaxHeaderBytes to ServerConfig.

Field Default Env Override
read-timeout 10s COMMON_FWK_SERVER_READ_TIMEOUT
write-timeout 10s COMMON_FWK_SERVER_WRITE_TIMEOUT
max-header-bytes 1048576 COMMON_FWK_SERVER_MAX_HEADER_BYTES

app — Runtime limits applied to http.Server

UseServer() now reads ReadTimeout, WriteTimeout, MaxHeaderBytes from config and applies them to the underlying http.Server.

Example Config

server:
  host: 127.0.0.1
  port: 8080
  read-timeout: 10s
  write-timeout: 10s
  max-header-bytes: 1048576

Compatibility

  • Defaults are backward-compatible — existing configs without these fields get documented defaults.