URL

extension URL
  • Compares given URL object with host, scheme, port, and optionally relativePath

    Declaration

    Swift

    public func isSame(_ url: URL, shouldCheckPath: Bool = true) -> Bool

    Parameters

    url

    URL to be compared

    shouldCheckPath

    Boolean indicator of whether or not to validate relativePath as well

    Return Value

    Boolean result whether or not two URLs are the same

  • Extracts value in given URL’s URL parameters

    Declaration

    Swift

    public func valueOf(_ queryParamaterName: String) -> String?

    Parameters

    queryParamaterName

    String value of parameter name in URL query parameter

    Return Value

    String value of given parameter name