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