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

std/http/mod.ts>mergeHeaders

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
variable mergeHeaders
Deprecated
Deprecated

(will be removed after 0.210.0) Import from https://deno.land/std/crypto/unstable_cookie_map.ts instead.

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.

import { mergeHeaders } from "https://deno.land/std@0.207.0/http/mod.ts";