Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/fsrouter/deps.ts>http.mergeHeaders

A file system based router for Deno.
Go to Latest
function http.mergeHeaders
import { http } from "https://deno.land/x/fsrouter@2.11.1/deps.ts";
const { mergeHeaders } = http;

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

Note, that unlike when passing a Response or Headers used in a response to 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.