ktor
2.2.4
3.0.0
3.0.0-rc-1
3.0.0-beta-2
3.0.0-beta-1
2.3.12
2.2.4
2.0.3
1.6.8
ktor-client-json-tests
/
io.ktor.client.plugins.json.tests
/
JsonTest
Json
Test
abstract
class
JsonTest
:
TestWithKtor
Base class for JSON tests.
Types
Constructors
Functions
Properties
Constructors
Json
Test
Link copied to clipboard
fun
JsonTest
(
)
Types
Response
Link copied to clipboard
@
Serializable
data
class
Response
<
T
>
(
val
ok
:
Boolean
,
val
result
:
T
?
)
User
Link copied to clipboard
@
Serializable
data
class
User
(
val
name
:
String
,
val
age
:
Int
)
Widget
Link copied to clipboard
@
Serializable
data
class
Widget
(
val
name
:
String
,
val
value
:
Int
,
val
tags
:
List
<
String
>
=
emptyList()
)
Functions
start
Server
Link copied to clipboard
fun
startServer
(
)
stop
Server
Link copied to clipboard
fun
stopServer
(
)
test
Custom
Content
Types
Link copied to clipboard
fun
testCustomContentTypes
(
)
test
Custom
Content
Types
Multiple
Link copied to clipboard
fun
testCustomContentTypesMultiple
(
)
test
Custom
Content
Types
Wildcard
Link copied to clipboard
fun
testCustomContentTypesWildcard
(
)
test
Empty
Body
Link copied to clipboard
fun
testEmptyBody
(
)
test
Serialize
Nested
Link copied to clipboard
fun
testSerializeNested
(
)
test
Serialize
Simple
Link copied to clipboard
fun
testSerializeSimple
(
)
Properties
server
Link copied to clipboard
open
override
val
server
:
ApplicationEngine
timeout
Link copied to clipboard
open
val
timeout
:
CoroutinesTimeout