api

http4k / org.http4k.core / Uri

Uri

data class Uri : Comparable<Uri>

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
fragmentParameter fun Uri.fragmentParameter(name: String, value: String?): Uri
fragmentParameters fun Uri.fragmentParameters(): Parameters
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
removeFragmentParameter fun Uri.removeFragmentParameter(name: String): Uri
removeQuery fun Uri.removeQuery(name: String): Uri
shouldHaveAuthority infix fun Uri.shouldHaveAuthority(expected: String): Unit
shouldHaveHost infix fun Uri.shouldHaveHost(expected: String): Unit
shouldHavePath infix fun Uri.shouldHavePath(match: Matcher<String?>): Unit
infix fun Uri.shouldHavePath(expected: String?): Unit
infix fun Uri.shouldHavePath(expected: Regex): Unit
shouldHavePort infix fun Uri.shouldHavePort(expected: Int): Unit
shouldHaveQuery infix fun Uri.shouldHaveQuery(expected: String): Unit
shouldNotHaveAuthority infix fun Uri.shouldNotHaveAuthority(expected: String): Unit
shouldNotHaveHost infix fun Uri.shouldNotHaveHost(expected: String): Unit
shouldNotHavePath infix fun Uri.shouldNotHavePath(match: Matcher<String?>): Unit
infix fun Uri.shouldNotHavePath(expected: String?): Unit
infix fun Uri.shouldNotHavePath(expected: Regex): Unit
shouldNotHavePort infix fun Uri.shouldNotHavePort(expected: Int): Unit
shouldNotHaveQuery infix fun Uri.shouldNotHaveQuery(expected: String): Unit