import { establishHeaders } from "https://deno.land/x/fathym_common@v0.2.165-integration/src/common/http/establishHeaders.ts";
Establishes headers for an HTTP request, combining existing headers with new.
Examples
From direct import
import { establishHeaders } from "@fathym/common/http";
From direct import import { establishHeaders } from "@fathym/common/http";
const headers = establishHeaders(req.headers, { 'Content-Type': 'application/json' });
From common import
import { establishHeaders } from "@fathym/common";
From common import import { establishHeaders } from "@fathym/common";
const headers = establishHeaders(req.headers, { 'Content-Type': 'application/json' });
Parameters
headers: Headers
The existing headers to be combined.