kkrpc
    Preparing search index...

    Function createHttpHandler

    • Create a Fetch API handler that exposes a local API over unary HTTP.

      The handler validates that the request body is a compact RPC request and rejects remote reference envelopes because HTTP has no reverse channel for invoking retained values. A request-scoped channel is destroyed after each response.

      Type Parameters

      • LocalAPI extends object

      Parameters

      Returns (request: Request) => Promise<Response>