LocationDetails

tyrian.LocationDetails
See theLocationDetails companion object
final case class LocationDetails(hash: Option[String], hostName: Option[String], pathName: String, port: Option[String], protocol: Option[String], search: Option[String], url: String)

Represents the deconstructed parts of a url.

Value parameters

hash

The anchor in the url starting with '#' followed by the fragment of the URL.

hostName

The name of host, e.g. localhost.

pathName

Is the path minus hash anchors and query params, e.g. "/page1".

port

Is the port number of the URL, e.g. 80.

protocol

The protocol e.g. https:

search

Is a String containing a '?' followed by the parameters of the URL.

url

The whole URL.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Concrete fields

Is a String of the full rendered url address, minus the origin. e.g. /my-page?id=12#anchor

Is a String of the full rendered url address, minus the origin. e.g. /my-page?id=12#anchor

Attributes

The host, e.g. localhost:8080.

The host, e.g. localhost:8080.

Attributes

val href: String

The whole URL.

The whole URL.

Attributes

The origin, e.g. http://localhost:8080.

The origin, e.g. http://localhost:8080.

Attributes