From 47fa6c9dbb3818c5e5464bc4cb2aca3826ed335d Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Thu, 7 Dec 2023 17:49:01 +0100 Subject: [PATCH] feat: expose parseHeader --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index 66d60785613..6898fb757d9 100644 --- a/index.js +++ b/index.js @@ -20,6 +20,7 @@ const { getGlobalDispatcher, setGlobalDispatcher } = require('./lib/global') const DecoratorHandler = require('./lib/handler/DecoratorHandler') const RedirectHandler = require('./lib/handler/RedirectHandler') const createRedirectInterceptor = require('./lib/interceptor/redirectInterceptor') +const { parseHeaders } = require('./lib/core/util') let hasCrypto try { @@ -45,6 +46,9 @@ module.exports.createRedirectInterceptor = createRedirectInterceptor module.exports.buildConnector = buildConnector module.exports.errors = errors +module.exports.util = { + parseHeaders +} function makeDispatcher (fn) { return (url, opts, handler) => {