* Adds an HTML table to the summary buffer * * @param {SummaryTableCell[]} rows table rows * * @returns {Summary} summary instance
(rows)
| 19700 | } |
| 19701 | url = new URL(util.parseOrigin(url).origin + path4); |
| 19702 | } else { |
| 19703 | if (!opts) { |
| 19704 | opts = typeof url === "object" ? url : {}; |
| 19705 | } |
| 19706 | url = util.parseURL(url); |
| 19707 | } |
| 19708 | const { agent, dispatcher = getGlobalDispatcher() } = opts; |
| 19709 | if (agent) { |
| 19710 | throw new InvalidArgumentError("unsupported opts.agent. Did you mean opts.client?"); |
| 19711 | } |
| 19712 | return fn.call(dispatcher, __spreadProps(__spreadValues({}, opts), { |
| 19713 | origin: url.origin, |
| 19714 | path: url.search ? `${url.pathname}${url.search}` : url.pathname, |
| 19715 | method: opts.method || (opts.body ? "PUT" : "GET") |
| 19716 | }), handler); |
| 19717 | }; |
| 19718 | } |
| 19719 | module.exports.setGlobalDispatcher = setGlobalDispatcher; |
| 19720 | module.exports.getGlobalDispatcher = getGlobalDispatcher; |