fromHttp()
Emit a single HTTP response for a GET request.
Import
Section titled “Import”import { fromHttp } from "@graphrefly/ts/sources";Signature
Section titled “Signature”function fromHttp(url: string): Operator<never, HttpResponse>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
url | string | Request URL. |
Returns
Section titled “Returns”A source operator that emits one HttpResponse.
Example
Section titled “Example”fromHttp("https://example.com");Source
Section titled “Source”packages/ts/src/graph/sources.ts