MockResponse

class MockResponse @ApolloDeprecatedSince(version = ApolloDeprecatedSince.Version.v3_3_1) constructor(    val statusCode: Int = 200,     val body: Flow<ByteString> = emptyFlow(),     val headers: Map<String, String> = mapOf("Content-Length" to "0"),     val delayMillis: Long = 0)

Constructors

Link copied to clipboard
fun MockResponse(    body: String,     statusCode: Int = 200,     headers: Map<String, String> = emptyMap(),     delayMillis: Long = 0)
Link copied to clipboard
fun MockResponse(    body: ByteString,     statusCode: Int = 200,     headers: Map<String, String> = emptyMap(),     delayMillis: Long = 0)
Link copied to clipboard
fun MockResponse(    statusCode: Int = 200,     body: Flow<ByteString> = emptyFlow(),     headers: Map<String, String> = mapOf("Content-Length" to "0"),     delayMillis: Long = 0)

Types

Link copied to clipboard
class Builder

Properties

Link copied to clipboard
val body: Flow<ByteString>
Link copied to clipboard
val delayMillis: Long = 0
Link copied to clipboard
val headers: Map<String, String>
Link copied to clipboard
val statusCode: Int = 200