MCPcopy Create free account
hub / github.com/Effect-TS/effect / urlParams

Function urlParams

packages/effect/src/unstable/http/HttpBody.ts:338–339  ·  view source on GitHub ↗
(urlParams: UrlParams.Input, contentType?: string)

Source from the content-addressed store, hash-verified

336 * @since 4.0.0
337 */
338export const urlParams = (urlParams: UrlParams.Input, contentType?: string): Uint8Array =>
339 text(UrlParams.toString(UrlParams.fromInput(urlParams)), contentType ?? "application/x-www-form-urlencoded")
340
341/**
342 * HTTP body variant backed by Web `FormData`.

Callers

nothing calls this directly

Calls 2

textFunction · 0.70
toStringMethod · 0.65

Tested by

no test coverage detected