Skip to content

openDesktopRequestUrlStream

Requests a URL through node:http / node:https and returns its body as a stream, following redirects.

Import:

import { openDesktopRequestUrlStream } from '@mnaoumov/obsidian-lib/desktop-request-url-stream';

Signature:

function openDesktopRequestUrlStream(request: EncodedRequestUrlRequest): Promise<RequestUrlStreamResponse>

Parameters:

Parameter Type Description
request EncodedRequestUrlRequest The encoded request.

Returns: Promise<RequestUrlStreamResponse> — The response, with a streamed body.