UNPKG

feature-policy

Version:

Middleware to set the Feature-Policy HTTP header

7 lines (6 loc) 291 B
import { IncomingMessage, ServerResponse } from "http"; interface FeaturePolicyOptions { features: Record<string, string[]>; } declare const _default: (options: Readonly<FeaturePolicyOptions>) => (_req: IncomingMessage, res: ServerResponse, next: () => void) => void; export = _default;