RPC: fixes some comments.
This commit is contained in:
parent
8264ec111a
commit
8360b4e407
@ -53,7 +53,7 @@ let make_cors_headers ?(headers=Cohttp.Header.init ())
|
||||
Cohttp.Header.add_multi cors_headers
|
||||
"Access-Control-Allow-Origin" [allowed_origin]
|
||||
|
||||
(* Promise a running RPC server. Takes the port. *)
|
||||
(* Promise a running RPC server. *)
|
||||
let launch ?pre_hook ?post_hook ?(host="::") mode root cors_allowed_origins cors_allowed_headers =
|
||||
(* launch the worker *)
|
||||
let cancelation, canceler, _ = Lwt_utils.canceler () in
|
||||
|
@ -12,7 +12,7 @@
|
||||
(** A handle on the server worker. *)
|
||||
type server
|
||||
|
||||
(** Promise a running RPC serve. To call a RPC at /p/a/t/h/ in the
|
||||
(** Promise a running RPC server. To call an RPC at /p/a/t/h/ in the
|
||||
provided service, one must call the URI /call/p/a/t/h/. Calling
|
||||
/list/p/a/t/h/ will list the services prefixed by /p/a/t/h/, if
|
||||
any. Calling /schema/p/a/t/h/ will describe the input and output
|
||||
@ -45,7 +45,7 @@ val launch :
|
||||
string list ->
|
||||
server Lwt.t
|
||||
|
||||
(** Kill a RPC server. *)
|
||||
(** Kill an RPC server. *)
|
||||
val shutdown : server -> unit Lwt.t
|
||||
|
||||
(** Retrieve the root service of the server. *)
|
||||
|
Loading…
Reference in New Issue
Block a user