All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.lemonlabs.uri.inet.PublicSuffixSupportImpl.scala Maven / Gradle / Ivy

There is a newer version: 1.4.10
Show newest version
package io.lemonlabs.uri.inet

import io.lemonlabs.uri.{Host, NotImplementedForScalaJsError}

trait PublicSuffixSupportImpl { this: Host =>
  /**
    * Returns the longest public suffix for the host in this URI. Examples include:
    *  `com`   for `www.example.com`
    *  `co.uk` for `www.example.co.uk`
    *
    * @return the longest public suffix for the host in this URI
    */
  def publicSuffix: Option[String] =
    throw NotImplementedForScalaJsError

  /**
    * Returns all longest public suffixes for the host in this URI. Examples include:
    *  `com` for `www.example.com`
    *  `co.uk` and `uk` for `www.example.co.uk`
    *
    * @return all public suffixes for the host in this URI
    */
  def publicSuffixes: Vector[String] =
    throw NotImplementedForScalaJsError
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy