toHttp()
Creates a to HTTP.
Import
Section titled “Import”import { toHttp } from "@graphrefly/ts/adapters";Signature
Section titled “Signature”function toHttp( graph: Graph, source: Node<T>, requestOf: HttpRequestOf<T>, opts: OutboundAdapterOptions = {},): OutboundBundle<T, HttpResponse>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
source | Node<T> | Source node that provides graph-visible input. |
requestOf | HttpRequestOf<T> | request of value used by the helper. |
opts | OutboundAdapterOptions | Options that configure the helper. |
Returns
Section titled “Returns”The to HTTP result.
Example
Section titled “Example”import { toHttp } from "@graphrefly/ts/adapters";Source
Section titled “Source”packages/ts/src/adapters/environment-outbound.ts