Path

zio.http.Path
See thePath companion object
final case class Path(segments: Chunk[String], hasLeadingSlash: Boolean, trailingSlash: Boolean)

Decoded URL path, stored as individual decoded segments.

Segments are stored without percent-encoding; use encode to produce a percent-encoded path string and render for the decoded form. Parse already-encoded paths with Path.fromEncoded.

Attributes

Companion
object
Source
Path.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def ++(other: Path): Path

Attributes

Source
Path.scala
def /(segment: String): Path

Attributes

Source
Path.scala

Attributes

Source
Path.scala

Attributes

Source
Path.scala
def drop(n: Int): Path

Attributes

Source
Path.scala

Attributes

Source
Path.scala
def dropRight(n: Int): Path

Attributes

Source
Path.scala

Attributes

Source
Path.scala
def encode: String

Attributes

Source
Path.scala
def initial: Path

Attributes

Source
Path.scala
def isEmpty: Boolean

Attributes

Source
Path.scala
def isRoot: Boolean

Attributes

Source
Path.scala
def last: Option[String]

Attributes

Source
Path.scala
def length: Int

Attributes

Source
Path.scala
def nonEmpty: Boolean

Attributes

Source
Path.scala
def render: String

Attributes

Source
Path.scala
def reverse: Path

Attributes

Source
Path.scala
def startsWith(other: Path): Boolean

Attributes

Source
Path.scala
def take(n: Int): Path

Attributes

Source
Path.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
Path.scala

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala