Lines Matching refs:path
538 if (url.path != null && typeof url.path !== "string") {
539 throw new InvalidArgumentError("Invalid URL path: the path must be a string or null/undefined.");
552 let path = url.path != null ? url.path : `${url.pathname || ""}${url.search || ""}`;
556 if (path && !path.startsWith("/")) {
557 path = `/${path}`;
559 url = new URL(origin + path);
3784 module2.exports = /* @__PURE__ */ __name(function basename(path) {
3785 if (typeof path !== "string") {
3788 for (var i = path.length - 1; i >= 0; --i) {
3789 switch (path.charCodeAt(i)) {
3792 path = path.slice(i + 1);
3793 return path === ".." || path === "." ? "" : path;
3796 return path === ".." || path === "." ? "" : path;
7254 path,
7268 if (typeof path !== "string") {
7269 throw new InvalidArgumentError("path must be a string");
7270 } else if (path[0] !== "/" && !(path.startsWith("http://") || path.startsWith("https://")) && method !== "CONNECT") {
7271 throw new InvalidArgumentError("path must be an absolute URL or start with a slash");
7272 } else if (invalidPathRegex.exec(path) !== null) {
7273 throw new InvalidArgumentError("invalid request path");
7335 this.path = query ? util.buildURL(path, query) : path;
7670 const options = { path: socketPath, ...opts };
8181 this.history.push(new URL(this.opts.path, this.opts.origin));
8186 const { origin, pathname, search } = util.parseURL(new URL(this.location, this.opts.origin && new URL(this.opts.path, this.opts.origin)));
8187 const path = search ? `${pathname}${search}` : pathname;
8189 this.opts.path = path;
9455 const { body, method, path, host, upgrade, headers, blocking, reset } = request;
9505 let header = `${method} ${path} HTTP/1.1\r
9569 const { body, method, path, host, upgrade, expectContinue, signal, headers: reqHeaders } = request;
9615 headers[HTTP2_HEADER_PATH] = path;
11204 path: url.pathname + url.search,