Module

x/oak/deps.ts>mergeHeaders

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
function mergeHeaders
import { mergeHeaders } from "https://dotland.deno.dev/x/oak@v12.2.0/deps.ts";

Allows merging of various sources of headers into a final set of headers which can be used in a {@link Response}.

Note, that unlike when passing a Response or {@link Headers} used in a response to {@link CookieMap} or SecureCookieMap, merging will not ensure that there are no other Set-Cookie headers from other sources, it will simply append the various headers together.

Parameters

...sources: (Headered | HeadersInit | Mergeable)[]

Returns

Headers