diff --git a/docs/web/postprocess/index.ml b/docs/web/postprocess/index.ml index dee5ae5f..b96e68f6 100644 --- a/docs/web/postprocess/index.ml +++ b/docs/web/postprocess/index.ml @@ -1455,9 +1455,9 @@ let new_global_replacement = {| |} let run_expected = {|
- val run : ?interface:string -> ?port:int -> ?stop:unit promise -> ?error_handler:error_handler -> -?tls:bool -> ?certificate_file:string -> ?key_file:string -> ?builtins:bool -> -?greeting:bool -> ?adjust_terminal:bool -> handler -> unit + val run : ?interface:string -> ?port:int -> ?socket_path:string -> ?stop:unit promise -> +?error_handler:error_handler -> ?tls:bool -> ?certificate_file:string -> ?key_file:string -> +?builtins:bool -> ?greeting:bool -> ?adjust_terminal:bool -> handler -> unit
|} @@ -1466,6 +1466,7 @@ let run_replacement = {| ?interface:string -> ?port:int -> ?stop:unit promise -> + ?socket_path:string -> ?error_handler:error_handler -> ?tls:bool -> ?certificate_file:string -> @@ -1477,9 +1478,9 @@ let run_replacement = {| |} let serve_expected = {|
- val serve : ?interface:string -> ?port:int -> ?stop:unit promise -> ?error_handler:error_handler -> -?tls:bool -> ?certificate_file:string -> ?key_file:string -> ?builtins:bool -> -handler -> unit promise + val serve : ?interface:string -> ?port:int -> ?socket_path:string -> ?stop:unit promise -> +?error_handler:error_handler -> ?tls:bool -> ?certificate_file:string -> ?key_file:string -> +?builtins:bool -> handler -> unit promise
|} @@ -1487,6 +1488,7 @@ let serve_replacement = {|
val serve :
   ?interface:string ->
   ?port:int ->
+  ?socket_path:string ->
   ?stop:unit promise ->
   ?error_handler:error_handler ->
   ?tls:bool ->
diff --git a/src/dream.mli b/src/dream.mli
index a1fb5609..d9b5e482 100644
--- a/src/dream.mli
+++ b/src/dream.mli
@@ -2120,6 +2120,8 @@ val run :
     - [~interface] is the network interface to listen on. Defaults to
       ["localhost"]. Use ["0.0.0.0"] to listen on all interfaces.
     - [~port] is the port to listen on. Defaults to [8080].
+    - If [~socket_path] is specified, Dream will listen on a Unix domain socket
+      at the given path, and ignore [~interface] and [~port].
     - [~stop] is a promise that causes the server to stop accepting new
       requests, and {!Dream.run} to return. Requests that have already entered
       the Web application continue to be processed. The default value is a