api

http4k / org.http4k.core / Uri

Uri

data class Uri : Comparable<Uri> (source)

Constructors

Name Summary
<init> Uri(scheme: String, userInfo: String, host: String, port: Int?, path: String, query: String, fragment: String)

Properties

Name Summary
authority val authority: String
fragment val fragment: String
host val host: String
path val path: String
port val port: Int?
query val query: String
scheme val scheme: String
userInfo val userInfo: String

Functions

Name Summary
authority fun authority(authority: String): Uri
compareTo fun compareTo(other: Uri): Int
fragment fun fragment(fragment: String): Uri
host fun host(host: String): Uri
path fun path(path: String): Uri
port fun port(port: Int?): Uri
query fun query(query: String): Uri
scheme fun scheme(scheme: String): Uri
toString fun toString(): String
userInfo fun userInfo(userInfo: String): Uri

Companion Object Functions

Name Summary
of fun of(value: String): Uri

Extension Functions

Name Summary
authority fun Uri.authority(authority: Authority): Uri
fun Uri.authority(): Authority
extend fun Uri.extend(uri: Uri): Uri
host fun Uri.host(): Host
fun Uri.host(host: Host): Uri
port fun Uri.port(port: Port?): Uri
fun Uri.port(): Port?
queries fun Uri.queries(): Parameters
query fun Uri.query(name: String, value: String?): Uri
removeQuery fun Uri.removeQuery(name: String): Uri
with fun <T> T.with(vararg modifiers: (T) -> T): T