API Reference
toNestHttp()
D474 HTTP egress resolver.
The returned boundary owns only a host-private pending map. It never stores response/socket/ack handles in graph DATA and only resolves handles whose requestId (and optional bindingId) match an egress envelope.
Import
import { toNestHttp } from "@graphrefly/ts/adapters/nestjs";
Signature
function toNestHttp(
egress: Node<NestReplyEnvelope<TPayload>>,
opts: ToNestHttpOptions<TPayload> = {},
): NestHttpBoundary<TPayload>
Parameters
| Parameter | Type | Description |
|---|---|---|
egress | Node<NestReplyEnvelope<TPayload>> | egress value used by the helper. |
opts | ToNestHttpOptions<TPayload> | Options that configure the helper. |
Returns
A NestHttpBoundary<TPayload> value for the boundary or adapter.
Example
import { toNestHttp } from "@graphrefly/ts/adapters/nestjs";
Source
packages/ts/src/adapters/nestjs.ts