Path

object Path
Companion
class
class Object
trait Matchable
class Any

Type members

Classlikes

final class Segment
Companion
object
object Segment extends String => Segment
Companion
class

Value members

Concrete methods

def apply(segments: Vector[Segment], absolute: Boolean, endsWithSlash: Boolean): Path

This constructor allows you to construct the path directly. Each path segment needs to be encoded for it to be used here.

This constructor allows you to construct the path directly. Each path segment needs to be encoded for it to be used here.

Value Params
absolute

if the path is absolute. I.E starts with a "/"

endsWithSlash

if the path is a "directory", ends with a "/"

segments

the segments that this path consists of. MUST be Urlencoded.

Returns

a Uri.Path that can be used in Uri, or by itself.

def unsafeFromString(fromPath: String): Path

Deprecated methods

@deprecated(message = "Use unsafeFromString instead", since = "0.22.0-M6")
def fromString(fromPath: String): Path
Deprecated
[Since version 0.22.0-M6] Use unsafeFromString instead

Concrete fields

lazy val Asterisk: Path
val Root: Path
val empty: Path

Implicits

Implicits

implicit val http4sInstancesForPath: Order[Path] & Semigroup[Path]