Builder

class Builder

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun addEncodedPathSegment(encodedPathSegment: String): HttpUrl.Builder
Link copied to clipboard
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
fun addEncodedQueryParameter(encodedName: String, encodedValue: String?): HttpUrl.Builder

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

Link copied to clipboard
Link copied to clipboard

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

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

Link copied to clipboard
fun build(): HttpUrl
Link copied to clipboard
fun encodedFragment(encodedFragment: String?): HttpUrl.Builder
Link copied to clipboard
fun encodedPassword(encodedPassword: String): HttpUrl.Builder
Link copied to clipboard
Link copied to clipboard
fun encodedQuery(encodedQuery: String?): HttpUrl.Builder
Link copied to clipboard
fun encodedUsername(encodedUsername: String): HttpUrl.Builder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setEncodedPathSegment(index: Int, encodedPathSegment: String): HttpUrl.Builder
Link copied to clipboard
fun setEncodedQueryParameter(encodedName: String, encodedValue: String?): HttpUrl.Builder
Link copied to clipboard
fun setPathSegment(index: Int, pathSegment: String): HttpUrl.Builder
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard