UrlPath

class UrlPath

Represents the path component of a URL

Parameters

segments

A list of path segments

trailingSlash

Indicates whether a trailing slash is present in the path (e.g., "/foo/bar/" vs "/foo/bar")

Types

Link copied to clipboard
class Builder

A mutable builder used to construct UrlPath instances

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val trailingSlash: Boolean = false

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Copy the properties of this UrlPath instance into a new Builder object. Any changes to the builder will not affect this instance.

Link copied to clipboard
open override fun toString(): String