Package-level declarations

Types

Link copied to clipboard

A builder for constructing HTTP URLs. This class allows for the configuration of scheme, host, port, path and query parameters to build a URI.

Functions

Link copied to clipboard
fun URI.mutate(init: HttpUrlBuilder.() -> Unit): URI

Creates a new URI by modifying an existing one using a Kotlin domain-specific language (DSL) builder. This function provides a way to create a new URI from an existing one with a fluent, English-like syntax.

Link copied to clipboard

Returns an iterator over the query parameters of the URI.

Link copied to clipboard

Converts the receiver string to a URI.

Link copied to clipboard
fun url(init: HttpUrlBuilder.() -> Unit): URI

This function provides a Kotlin domain-specific language (DSL) for building a URI. By using Kotlin's function literals with receiver, it enables a more expressive, English-like syntax when creating a URI.

fun url(fromUri: URI, init: HttpUrlBuilder.() -> Unit): URI

Transforms a given URI using a Kotlin domain-specific language (DSL) builder. This function provides a way to modify an existing URI with a more expressive, English-like syntax.

fun url(fromString: String, init: HttpUrlBuilder.() -> Unit): URI

Transforms a given URL string into a URI using a Kotlin domain-specific language (DSL) builder. This function provides a way to create and configure a URI from a string with a more expressive, English-like syntax.