toggle menu
apollo-kdoc
4.0.0-beta.7-SNAPSHOT
4.0.0-beta.7-SNAPSHOT
3.8.2
common
switch theme
search in API
apollo-mockserver
/
com.apollographql.apollo3.mockserver
/
MockResponse
Mock
Response
class
MockResponse
Members
Constructors
Mock
Response
Link copied to clipboard
@
ApolloDeprecatedSince
(
version
=
ApolloDeprecatedSince.Version.v3_3_1
)
constructor
(
statusCode
:
Int
=
200
,
body
:
Flow
<
ByteString
>
=
emptyFlow()
,
headers
:
Map
<
String
,
String
>
=
mapOf("Content-Length" to "0")
,
delayMillis
:
Long
=
0
)
Types
Builder
Link copied to clipboard
class
Builder
Properties
body
Link copied to clipboard
val
body
:
Flow
<
ByteString
>
delay
Millis
Link copied to clipboard
val
delayMillis
:
Long
headers
Link copied to clipboard
val
headers
:
Map
<
String
,
String
>
keep
Alive
Link copied to clipboard
val
keepAlive
:
Boolean
Whether to keep the TCP connection alive after this response
status
Code
Link copied to clipboard
val
statusCode
:
Int
Functions
new
Builder
Link copied to clipboard
fun
newBuilder
(
)
:
MockResponse.Builder