Package com.motorro.keeplink.uri

Base cross-platform tools for URI parsing and building

Base cross-platform tools for URI parsing and building

Base cross-platform tools for URI parsing and building

Base cross-platform tools for URI parsing and building

Types

Link copied to clipboard
object PshComponentsSerializer : KSerializer<PshComponents>

Serializes PshComponents

Link copied to clipboard
class UriComponents(    val scheme: String,     val host: String,     path: Array<String>,     search: Array<Param>,     hash: String) : PshComponents

Cross-platform URI representation

Functions

Link copied to clipboard
expect fun UriComponents.build(): String

Builds string URI from UriComponents

actual fun UriComponents.build(): String

Builds string URI from UriComponents (iOS implementation)

actual fun UriComponents.build(): String

Builds string URI from UriComponents (JS implementation)

actual fun UriComponents.build(): String

Builds string URI from UriComponents (JVM implementation)

Link copied to clipboard
fun pshComponentsOf(    path: List<String>,     search: List<Param>,     hash: String): PshComponents
fun pshComponentsOf(    path: List<String>,     search: Map<String, String> = emptyMap(),     hash: String = ""): PshComponents

Creates PSH components

Link copied to clipboard
fun searchComponentOf(vararg search: Pair<String, String>): SearchComponent
fun searchComponentOf(search: Map<String, String>): SearchComponent

Creates search components

Link copied to clipboard
expect fun String.toComponents(): UriComponents

Parses string URI to UriComponents

actual fun String.toComponents(): UriComponents

Parses string URI to UriComponents (iOS implementation)

actual fun String.toComponents(): UriComponents

Parses string URI to UriComponents (JS implementation)

actual fun String.toComponents(): UriComponents

Parses string URI to UriComponents (JVM implementation)

Link copied to clipboard
fun uriComponentsOf(    scheme: String,     host: String,     path: List<String>,     search: Map<String, String> = emptyMap(),     hash: String = ""): UriComponents

Creates URI components