UNPKG

@bbc/http-transport

Version:

A flexible, modular REST client built for ease-of-use and resilience.

11 lines (8 loc) 161 B
'use strict'; const _ = require('lodash'); module.exports = (opts, path) => { return (ctx, next) => { _.set(ctx, path, opts); return next(); }; };