import { replaceTemplateVariables } from "../string-template.js";
//#region src/libs/send-request/create-fetch-headers.ts
/** Populate the headers from enabled parameters */
function createFetchHeaders(example, env) {
	const headers = {};
	example.parameters.headers.forEach((h) => {
		const lowerCaseKey = h.key.trim().toLowerCase();
		if (h.enabled && (lowerCaseKey !== "content-type" || h.value !== "multipart/form-data")) headers[lowerCaseKey] = replaceTemplateVariables(h.value, env);
	});
	return headers;
}
//#endregion
export { createFetchHeaders };

//# sourceMappingURL=create-fetch-headers.js.map