(opts)
| 11274 | if (typeof opts !== "object") { |
| 11275 | throw new InvalidArgumentError("opts must be an object"); |
| 11276 | } |
| 11277 | if (typeof opts.path === "undefined") { |
| 11278 | throw new InvalidArgumentError("opts.path must be defined"); |
| 11279 | } |
| 11280 | if (typeof opts.method === "undefined") { |
| 11281 | opts.method = "GET"; |
| 11282 | } |
| 11283 | if (typeof opts.path === "string") { |
| 11284 | if (opts.query) { |
| 11285 | opts.path = buildURL(opts.path, opts.query); |
| 11286 | } else { |
| 11287 | const parsedURL = new URL(opts.path, "data://"); |
nothing calls this directly
no test coverage detected