[][src]Function dart_sys::Dart_DefaultCanonicalizeUrl

pub unsafe extern "C" fn Dart_DefaultCanonicalizeUrl(
    base_url: Dart_Handle,
    url: Dart_Handle
) -> Dart_Handle

Canonicalizes a url with respect to some library.

The url is resolved with respect to the library's url and some url normalizations are performed.

This canonicalization function should be sufficient for most embedders to implement the Dart_kCanonicalizeUrl tag.

\param base_url The base url relative to which the url is being resolved. \param url The url being resolved and canonicalized. This parameter is a string handle.

\return If no error occurs, a String object is returned. Otherwise an error handle is returned.