Skip to content
PACKAGES

toHttp()

Creates a to HTTP.

import { toHttp } from "@graphrefly/ts/adapters";
function toHttp(
graph: Graph,
source: Node<T>,
requestOf: HttpRequestOf<T>,
opts: OutboundAdapterOptions = {},
): OutboundBundle<T, HttpResponse>
ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
sourceNode<T>Source node that provides graph-visible input.
requestOfHttpRequestOf<T>request of value used by the helper.
optsOutboundAdapterOptionsOptions that configure the helper.

The to HTTP result.

import { toHttp } from "@graphrefly/ts/adapters";

packages/ts/src/adapters/environment-outbound.ts