MockWebServer

class MockWebServer : ExternalResource, Closeable

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val port: Int
Link copied to clipboard
@get:JvmName(name = "protocols")
var protocols: List<Protocol>
Link copied to clipboard

Functions

Link copied to clipboard
open override fun apply(p0: Statement, p1: Description): Statement
Link copied to clipboard
open override fun close()
Link copied to clipboard
fun enqueue(response: MockResponse)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun start(port: Int = 0)
fun start(inetAddress: InetAddress, port: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun url(path: String): HttpUrl
Link copied to clipboard
fun useHttps(sslSocketFactory: SSLSocketFactory, tunnelProxy: Boolean)