import { stringify } from "https://deno.land/x/hsts_middleware@1.0.1/deps.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",
);