parseList

import { parseList } from "jsr:@ende/http/unstable-structured-fields";

function ยท experimental

function parseList(input: string): List

Parses a List Structured Field value.

input: string

The string to parse.

Returns

The parsed List.

Example: Usage

import { parseList } from "@ende/http/unstable-structured-fields";
import { assertEquals } from "@ende/assert";

const list = parseList("1, 42");
assertEquals(list.length, 2);

See also

Source