Skip to main content

IUrlResolver Interface

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/driver-definitions/legacy.

For more information about our API support guarantees, see here.

Signature

export interface IUrlResolver

Methods

MethodAlertsReturn TypeDescription
getAbsoluteUrl(resolvedUrl, relativeUrl, packageInfoSource)BetaPromise<string>Creates a url for the created container with any data store path given in the relative url.
resolve(request)BetaPromise<IResolvedUrl | undefined>

Method Details

getAbsoluteUrl

Creates a url for the created container with any data store path given in the relative url.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

getAbsoluteUrl(resolvedUrl: IResolvedUrl, relativeUrl: string, packageInfoSource?: IContainerPackageInfo): Promise<string>;

Parameters

ParameterModifiersTypeDescription
resolvedUrlIResolvedUrlresolved url for the container.
relativeUrlstringrelative url containing data store path; '/' represents root path.
packageInfoSourceoptionalIContainerPackageInfooptional, represents container package information to be included in url.

Returns

absolute url combining container url with dta store path and optional additional information.

Return type: Promise<string>

resolve

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

resolve(request: IRequest): Promise<IResolvedUrl | undefined>;

Parameters

ParameterTypeDescription
requestIRequest

Returns

Return type: Promise<IResolvedUrl | undefined>