mockwebserver / okhttp3.mockwebserver / MockResponse / setHttp2ErrorCode

setHttp2ErrorCode

fun setHttp2ErrorCode(http2ErrorCode: Int): MockResponse

Sets the HTTP/2 error code to be returned when resetting the stream. This is only valid with SocketPolicy.RESET_STREAM_AT_START.