Skip to content
PACKAGES

fromHttpWithOptions()

Emit a single HTTP response using a caller-supplied request object.

import { fromHttpWithOptions } from "@graphrefly/ts/sources";
function fromHttpWithOptions(request: HttpRequest): Operator<never, HttpResponse>
ParameterTypeDescription
requestHttpRequestHTTP request to dispatch.

A source operator that emits one HttpResponse.

fromHttpWithOptions({ method: "GET", url: "https://example.com" });

packages/ts/src/graph/sources.ts