package dune-rpc

  1. Overview
  2. Docs
type 'state t
val handle_request : 'state t -> 'state -> Request.t -> Response.t Fiber.t
val handle_notification : 'state t -> 'state -> Call.t -> (unit, Response.Error.t) Stdune.result Fiber.t
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.