Path

zio.http.Path
See thePath companion object
final case class Path

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def ++(other: Path): Path

Combines two paths together to create a new one. In the process it will remove all extra slashes from the final path, leaving only the ones that are at the ends.

Combines two paths together to create a new one. In the process it will remove all extra slashes from the final path, leaving only the ones that are at the ends.

Attributes

def /(name: Extractor): Path
def /(name: String): Path

Appends a segment at the end of the path. To append a trailing slash use an empty string.

Appends a segment at the end of the path. To append a trailing slash use an empty string.

Attributes

def /:(name: String): Path

Prepends the path with the provided segment. To prepend a leading slash use an empty string.

Prepends the path with the provided segment. To prepend a leading slash use an empty string.

Attributes

Appends a trailing slash to the path

Appends a trailing slash to the path

Attributes

def concat(other: Path): Path

Named alias to ++ operator

Named alias to ++ operator

Attributes

def drop(n: Int): Path

Drops segments from the beginning of the path.

Drops segments from the beginning of the path.

Attributes

def dropLast(n: Int): Path

Drops segments from the end of the path.

Drops segments from the end of the path.

Attributes

Drops the trailing slash if available

Drops the trailing slash if available

Attributes

Encodes the current path into a valid string

Encodes the current path into a valid string

Attributes

Returns a new path that contains only the inital segments, leaving the last segment.

Returns a new path that contains only the inital segments, leaving the last segment.

Attributes

Checks if the path is equal to ""

Checks if the path is equal to ""

Attributes

Checks if the path is equal to "/"

Checks if the path is equal to "/"

Attributes

Returns a the last element of the path. If the path contains a trailing slash, None will be returned.

Returns a the last element of the path. If the path contains a trailing slash, None will be returned.

Attributes

Returns the last segment of the path

Returns the last segment of the path

Attributes

Checks if the path contains a leading slash.

Checks if the path contains a leading slash.

Attributes

Checks if the path is not equal to ""

Checks if the path is not equal to ""

Attributes

Creates a new path from this one with it's segments reversed.

Creates a new path from this one with it's segments reversed.

Attributes

def startsWith(other: Path): Boolean

Checks if the path starts with the provided path

Checks if the path starts with the provided path

Attributes

def take(n: Int): Path

Creates a new path with the provided n initial segments.

Creates a new path with the provided n initial segments.

Attributes

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

Checks if the path contains a trailing slash.

Checks if the path contains a trailing slash.

Attributes

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product