import { stringify } from "https://deno.land/x/hsts_parser@1.0.0-beta.1/mod.ts";
Serialize StrictTransportSecurity into string.
Examples
Example 1
Example 1
import { stringify } from "https://deno.land/x/hsts_parser@$VERSION/mod.ts";
import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
assertEquals(
stringify({
maxAge: 60 * 60 * 24 * 180,
includeSubDomains: true,
preload: true,
}),
"max-age=15552000; includeSubDomains; preload",
);