class modify_http_reactor_config :?modify_http_protocol_config:Nethttpd_kernel.http_protocol_config -> Nethttpd_kernel.http_protocol_config -> ?modify_http_processor_config:http_processor_config ->
http_processor_config -> ?config_reactor_synch:[ `Close | `Connection | `Flush | `Write ] -> http_reactor_config ->http_reactor_config
Modifies the passed config object as specified by the optional arguments.
modify_http_protocol_config
and modify_http_processor_config
:
These functions can be used to modify the
parts of the config object that are inherited from http_protocol_config
and http_processor_config
, respectively:
For example:
let new_cfg =
new modify_http_reactor_config
~modify_http_protocol_config:
(new Nethttpd_kernel.modify_http_protocol_config
~config_suppress_broken_pipe:true)
~modify_http_processor_config:
(new Nethttpd_reactor.modify_http_processor_config
~config_timeout:15.0)
old_cfg