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
| Parameter | Type | Description |
|---|---|---|
request | HttpRequest | HTTP 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