Skip to content
PACKAGES

fromHttp()

Emit a single HTTP response for a GET request.

import { fromHttp } from "@graphrefly/ts/sources";
function fromHttp(url: string): Operator<never, HttpResponse>
ParameterTypeDescription
urlstringRequest URL.

A source operator that emits one HttpResponse.

fromHttp("https://example.com");

packages/ts/src/graph/sources.ts