• Creates a relative URL by removing the base URL. Will throw an error in case the resulting target is not withing the base URL scope.

    Parameters

    • baseUrl: string

      Base URL.

    • request: HttpRequest

      Incoming request of which the target needs to be extracted.

    • targetExtractor: TargetExtractor

      Will extract the target from the request.

    Returns Promise<string>