receive as a first parameter the path required by the the HTTP client as a
string, and a list of pair <parameter, value> representing parameters passed
via GET. The last argument of the callback is an output_channel connected to
- the HTTP client to which the user can write directly. 'timeout' parameter
- sets a timeout for each request processed by the daemon, if it's set to None,
+ the HTTP client to which the user can write directly. 'timeout' parameter sets
+ a timeout for each request processed by the daemon, if it's set to None,
daemon waits forever for completed requests (use with care!), default is 5
- minute *)
+ minute. 'fork' parameter (default 'true') sets whether the daemon forks a
+ child for each request or not, if children aren't forked request are server
+ one at a time (backlog is 10) and callbacks live in the same address space of
+ the process invoking 'start' *)
val start:
- ?addr: string -> ?port: int -> ?timeout: int option ->
+ ?addr: string -> ?port: int -> ?timeout: int option -> ?fork: bool ->
(string -> (string * string) list -> out_channel -> unit) ->
unit
one is an out_channel as per 'start', but the secondo one is a Request.request
object *)
val start':
- ?addr: string -> ?port: int -> ?timeout: int option ->
+ ?addr: string -> ?port: int -> ?timeout: int option -> ?fork: bool ->
(Http_types.request -> out_channel -> unit) ->
unit