Skip to main content
Module

x/http_utils/mod.ts>isSingletonField

HTTP implementation utility collection
Go to Latest
function isSingletonField
import { isSingletonField } from "https://deno.land/x/http_utils@1.0.0-beta.4/mod.ts";

Weather the field is singleton field or not.

import { isSingletonField } from "https://deno.land/x/http_utils@$VERSION/mod.ts";
import { assertEquals } from "https://deno.land/std@$VERSION/testing/asserts.ts";

assertEquals(isSingletonField("Origin"), true);
assertEquals(isSingletonField("Vary"), false);

Parameters

fieldName: string

Returns

boolean