method BunHttpAdapter.prototype.setRpcHandler
Since 0.3.0
BunHttpAdapter.prototype.setRpcHandler(handler: RpcFetchHandler): void
Deprecated

This method is no longer called by the kernel. gRPC dispatch now occurs inside the kernel terminal handler, after the middleware pipeline runs. The kernel resolves IGrpcService from the service registry and calls handleRequest directly. This setter is retained for backward compatibility but is a no-op in current adapters. It will be removed in the next major release.

Installs a gRPC/Connect fetch handler.

Parameters

handler: RpcFetchHandler

The RPC fetch handler (retained for compatibility)

Return Type

void

Usage

import { BunHttpAdapter } from "runtime/src/index.ts";