Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/drash/src/services/cors/deps.ts>vary

A microframework for Deno's HTTP server with zero third-party dependencies
Go to Latest
variable vary
import { vary } from "https://deno.land/x/drash@v2.8.1/src/services/cors/deps.ts";

Mark that a request is varied on a header field.

type

(
responseHeadersGet: (header: string) => string,
responseHeadersSet: (header: string, value: string) => void,
field: string | string[],
) => unknown