Skip to content

encodeRequestUrlRequest

Encodes a request for a transport: validates the URL, combines the abort signal with the timeout, encodes the body and settles the content type.

Import:

import { encodeRequestUrlRequest } from '@mnaoumov/obsidian-lib/request-url';

Signature:

function encodeRequestUrlRequest(params: RequestUrlExParams): Promise<EncodedRequestUrlRequest>

Parameters:

Parameter Type Description
params RequestUrlExParams The request.

Returns: Promise<EncodedRequestUrlRequest> — The encoded request.


Links to this page: