Skip to main content
Module

x/earthstar_streaming_rpc/mod.ts>TransportHttpServer

Like JSON-RPC, but supports streaming.
Latest
class TransportHttpServer
implements ITransport<BagType>
Re-export
import { TransportHttpServer } from "https://deno.land/x/earthstar_streaming_rpc@v5.0.1/mod.ts";

A Transport that is able to receive and respond to HTTP requests.

Constructors

new
TransportHttpServer(opts: ITransportHttpServerOpts<BagType>)

Type Parameters

BagType extends FnsBag

Properties

_outgoingBuffer: Map<string, Envelope<BagType>[]>
_path: string
description: string
deviceId: string
handler: (req: InstanceType<Request>) => Promise<InstanceType<Response>>

Processes HTTP requests from TransportHttpClient and returns the appropriate response.

readonly
isClosed
methods: BagType