Skip to main content
Module

x/accept_ranges_parser/mod.ts>stringifyAcceptRanges

HTTP Accept-Ranges header field parser
Latest
function stringifyAcceptRanges
import { stringifyAcceptRanges } from "https://deno.land/x/accept_ranges_parser@1.0.1/mod.ts";

Serialize string of array into string.

Examples

Example 1

import { stringifyAcceptRanges } from "https://deno.land/x/accept_ranges_parser@$VERSION/stringify.ts";
import { assertEquals } from "https://deno.land/std/testing/asserts.ts";

assertEquals(stringifyAcceptRanges(["bytes"]), "bytes");

Parameters

acceptRanges: string | readonly [string, ...string[]]

Returns

string