- Added new server options
- Added config entry
server.readHeaderTimeout
which represents the amount of time allowed to read request headers. - Added
Options.BaseContext
, allowing to define the base context for the server. - Added
Options.ConnContext
, allowing to modify the context used for new client connections. - Added
Options.ConnState
, allowing to get notified when the client connection state changes. - Added
Options.MaxHeaderBytes
, which controls the maximum number of bytes the server will read parsing the request header's keys and values, including the request line.
- Added config entry
- Improvements on the embedded resources support:
- Added a
fsutil.Embed.Sub
method, allowing to get sub filesystems forembed.FS
. fsutil.Embed
now acceptsfs.ReadDirFS
instead ofembed.FS
- The lang package loads from root FS directory instead of forcing
resources/lang
, unless the FS implementsfsutil.WorkingDirDS
- Added a