package dune-rpc

  1. Overview
  2. Docs
type 'state t
val handle_request : 'state t -> 'state -> Request.t -> Response.t fiber
val handle_notification : 'state t -> 'state -> Call.t -> (unit, Response.Error.t) Stdune.result fiber
val prepare_request : 'a t -> ('req, 'resp) Decl.Request.witness -> (('req, 'resp) Staged.request, Version_error.t) Stdune.result
val prepare_notification : 'a t -> 'payload Decl.Notification.witness -> ('payload Staged.notification, Version_error.t) Stdune.result
OCaml

Innovation. Community. Security.