GraphReFlyTS

API Reference

fromHttpWithOptions()

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

Import

import { fromHttpWithOptions } from "@graphrefly/ts/sources";

Signature

function fromHttpWithOptions(request: HttpRequest): Operator<never, HttpResponse>

Parameters

ParameterTypeDescription
requestHttpRequestHTTP request to dispatch.

Returns

A source operator that emits one HttpResponse.

Example

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

Source

packages/ts/src/graph/sources.ts