Builder

expect class Builder
actual class Builder
actual class Builder

Constructors

Link copied to clipboard
expect constructor()
constructor()
constructor()

Functions

Link copied to clipboard
expect fun addEncodedPathSegment(encodedPathSegment: String): HttpUrl.Builder
actual fun addEncodedPathSegment(encodedPathSegment: String): HttpUrl.Builder
actual fun addEncodedPathSegment(encodedPathSegment: String): HttpUrl.Builder
Link copied to clipboard
expect fun addEncodedPathSegments(encodedPathSegments: String): HttpUrl.Builder

Adds a set of encoded path segments separated by a slash (either \ or /). If encodedPathSegments starts with a slash, the resulting URL will have empty path segment.

actual fun addEncodedPathSegments(encodedPathSegments: String): HttpUrl.Builder
actual fun addEncodedPathSegments(encodedPathSegments: String): HttpUrl.Builder

Adds a set of encoded path segments separated by a slash (either \ or /). If encodedPathSegments starts with a slash, the resulting URL will have empty path segment.

Link copied to clipboard
expect fun addEncodedQueryParameter(encodedName: String, encodedValue: String?): HttpUrl.Builder

Adds the pre-encoded query parameter to this URL's query string.

actual fun addEncodedQueryParameter(encodedName: String, encodedValue: String?): HttpUrl.Builder
actual fun addEncodedQueryParameter(encodedName: String, encodedValue: String?): HttpUrl.Builder

Adds the pre-encoded query parameter to this URL's query string.

Link copied to clipboard
expect fun addPathSegment(pathSegment: String): HttpUrl.Builder
actual fun addPathSegment(pathSegment: String): HttpUrl.Builder
actual fun addPathSegment(pathSegment: String): HttpUrl.Builder
Link copied to clipboard
expect fun addPathSegments(pathSegments: String): HttpUrl.Builder

Adds a set of path segments separated by a slash (either \ or /). If pathSegments starts with a slash, the resulting URL will have empty path segment.

actual fun addPathSegments(pathSegments: String): HttpUrl.Builder
actual fun addPathSegments(pathSegments: String): HttpUrl.Builder

Adds a set of path segments separated by a slash (either \ or /). If pathSegments starts with a slash, the resulting URL will have empty path segment.

Link copied to clipboard
expect fun addQueryParameter(name: String, value: String?): HttpUrl.Builder

Encodes the query parameter using UTF-8 and adds it to this URL's query string.

actual fun addQueryParameter(name: String, value: String?): HttpUrl.Builder
actual fun addQueryParameter(name: String, value: String?): HttpUrl.Builder

Encodes the query parameter using UTF-8 and adds it to this URL's query string.

Link copied to clipboard
expect fun build(): HttpUrl
actual fun build(): HttpUrl
actual fun build(): HttpUrl
Link copied to clipboard
expect fun encodedFragment(encodedFragment: String?): HttpUrl.Builder
actual fun encodedFragment(encodedFragment: String?): HttpUrl.Builder
actual fun encodedFragment(encodedFragment: String?): HttpUrl.Builder
Link copied to clipboard
expect fun encodedPassword(encodedPassword: String): HttpUrl.Builder
actual fun encodedPassword(encodedPassword: String): HttpUrl.Builder
actual fun encodedPassword(encodedPassword: String): HttpUrl.Builder
Link copied to clipboard
expect fun encodedPath(encodedPath: String): HttpUrl.Builder
actual fun encodedPath(encodedPath: String): HttpUrl.Builder
actual fun encodedPath(encodedPath: String): HttpUrl.Builder
Link copied to clipboard
expect fun encodedQuery(encodedQuery: String?): HttpUrl.Builder
actual fun encodedQuery(encodedQuery: String?): HttpUrl.Builder
actual fun encodedQuery(encodedQuery: String?): HttpUrl.Builder
Link copied to clipboard
expect fun encodedUsername(encodedUsername: String): HttpUrl.Builder
actual fun encodedUsername(encodedUsername: String): HttpUrl.Builder
actual fun encodedUsername(encodedUsername: String): HttpUrl.Builder
Link copied to clipboard
expect fun fragment(fragment: String?): HttpUrl.Builder
actual fun fragment(fragment: String?): HttpUrl.Builder
actual fun fragment(fragment: String?): HttpUrl.Builder
Link copied to clipboard
expect fun host(host: String): HttpUrl.Builder
actual fun host(host: String): HttpUrl.Builder
actual fun host(host: String): HttpUrl.Builder
Link copied to clipboard
expect fun password(password: String): HttpUrl.Builder
actual fun password(password: String): HttpUrl.Builder
actual fun password(password: String): HttpUrl.Builder
Link copied to clipboard
expect fun port(port: Int): HttpUrl.Builder
actual fun port(port: Int): HttpUrl.Builder
actual fun port(port: Int): HttpUrl.Builder
Link copied to clipboard
expect fun query(query: String?): HttpUrl.Builder
actual fun query(query: String?): HttpUrl.Builder
actual fun query(query: String?): HttpUrl.Builder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
expect fun scheme(scheme: String): HttpUrl.Builder
actual fun scheme(scheme: String): HttpUrl.Builder
actual fun scheme(scheme: String): HttpUrl.Builder
Link copied to clipboard
expect fun setEncodedPathSegment(index: Int, encodedPathSegment: String): HttpUrl.Builder
actual fun setEncodedPathSegment(index: Int, encodedPathSegment: String): HttpUrl.Builder
actual fun setEncodedPathSegment(index: Int, encodedPathSegment: String): HttpUrl.Builder
Link copied to clipboard
expect fun setEncodedQueryParameter(encodedName: String, encodedValue: String?): HttpUrl.Builder
actual fun setEncodedQueryParameter(encodedName: String, encodedValue: String?): HttpUrl.Builder
actual fun setEncodedQueryParameter(encodedName: String, encodedValue: String?): HttpUrl.Builder
Link copied to clipboard
expect fun setPathSegment(index: Int, pathSegment: String): HttpUrl.Builder
actual fun setPathSegment(index: Int, pathSegment: String): HttpUrl.Builder
actual fun setPathSegment(index: Int, pathSegment: String): HttpUrl.Builder
Link copied to clipboard
expect fun setQueryParameter(name: String, value: String?): HttpUrl.Builder
actual fun setQueryParameter(name: String, value: String?): HttpUrl.Builder
actual fun setQueryParameter(name: String, value: String?): HttpUrl.Builder
Link copied to clipboard
open override fun toString(): String
open override fun toString(): String
Link copied to clipboard
expect fun username(username: String): HttpUrl.Builder
actual fun username(username: String): HttpUrl.Builder
actual fun username(username: String): HttpUrl.Builder