Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/http_utils/header.ts>isRangeHeader

HTTP utility collection for Fetch API
Go to Latest
function isRangeHeader
import { isRangeHeader } from "https://deno.land/x/http_utils@1.0.0/header.ts";

Whether the input is RangeHeader or not.

Examples

Example 1

import { isRangeHeader } from "https://deno.land/x/http_utils@$VERSION/header.ts";
import { assert } from "https://deno.land/std@$VERSION/testing/asserts.ts";

assert(isRangeHeader("range"));
assert(!isRangeHeader("<others>"));

Parameters

input: string

Returns

input is `${RangeHeader}`