Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
function mergeHeaders
Deprecated
Deprecated

(will be removed in 0.212.0) Use https://deno.land/std/http/cookie.ts instead.

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

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.