Skip to content

Commit

Permalink
feat: expose parseHeader (#2511)
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Dec 8, 2023
1 parent de7dc7f commit 7ab7d2c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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) => {
Expand Down

0 comments on commit 7ab7d2c

Please sign in to comment.