Tezos_rpc_http_server.RPC_middlewareSourceThis module provides middlewares that is used by the RPC servers to forward unsupported RPCs to a full node.
A Resto middleware that transforms any callback to an other that rewrites queries that the proxy server cannot handle and forwards them to the full node at the given Uri.t.
val rpc_metrics_transform_callback :
update_metrics:
(string ->
string ->
(unit -> Cohttp_lwt_unix.Server.response_action Lwt.t) ->
Cohttp_lwt_unix.Server.response_action Lwt.t) ->
unit Tezos_rpc.Directory.t ->
RPC_server.callback ->
RPC_server.callbackA Resto middleware that transforms any server callback to an other that handles RPC metrics