- buildUrl(override, options?): UrlParts
Parameters
- override: ReadonlyObjectDeep<PartialWithUndefined<{
hash?: string;
hostname?: string;
password?: string;
pathname?: string;
paths?: string[];
port?: string | number;
protocol?: string;
search?: string | SearchParamsInput;
username?: string;
}>> Optional
options: Readonly<PartialWithUndefined<{
encoding: UrlEncoding;
searchParamStrategy: SearchParamStrategy;
}>>
- buildUrl(baseUrl, override, options?): UrlParts
Parameters
- baseUrl: string | URL
- override: ReadonlyObjectDeep<PartialWithUndefined<{
hash?: string;
hostname?: string;
password?: string;
pathname?: string;
paths?: string[];
port?: string | number;
protocol?: string;
search?: string | SearchParamsInput;
username?: string;
}>> Optional
options: ReadonlyObjectDeep<PartialWithUndefined<{
encoding: UrlEncoding;
searchParamStrategy: SearchParamStrategy;
}>>
Builds a URL either from an object of URL parts or from overriding a base URL string.