Skip to main content
Module

x/http_utils/mod.ts>isMessageMetadataHeader

HTTP utility collection for Fetch API
Go to Latest
function isMessageMetadataHeader
import { isMessageMetadataHeader } from "https://deno.land/x/http_utils@1.0.0-beta.14/mod.ts";

Whether the input is MessageMetadataHeader or not.

Examples

Example 1

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

assert(isMessageMetadataHeader("date"));
assert(!isMessageMetadataHeader("<others>"));

Parameters

input: string