ktor-client-json
Module Contents
alltypes
Module Contents
class
JsonFeature
Module Contents
JsonFeature
(
serializer
:
JsonSerializer
)
class
Config
Module Contents
Config
(
)
fun
accept
(
vararg
contentTypes
:
ContentType
)
:
Unit
var
acceptContentTypes
:
List
<
ContentType
>
fun
receive
(
matcher
:
ContentTypeMatcher
)
:
Unit
var
receiveContentTypeMatchers
:
List
<
ContentTypeMatcher
>
var
serializer
:
JsonSerializer
?
companion
object
Feature
:
HttpClientFeature
<
Config
,
JsonFeature
>
Module Contents
fun
install
(
feature
:
JsonFeature
,
scope
:
HttpClient
)
:
Unit
val
key
:
AttributeKey
<
JsonFeature
>
fun
prepare
(
block
:
Config
.
(
)
->
Unit
)
:
JsonFeature
val
acceptContentTypes
:
List
<
ContentType
>
fun
install
(
feature
:
JsonFeature
,
scope
:
HttpClient
)
:
Unit
val
key
:
AttributeKey
<
JsonFeature
>
fun
prepare
(
block
:
Config
.
(
)
->
Unit
)
:
JsonFeature
val
serializer
:
JsonSerializer
interface
JsonSerializer
Module Contents
abstract
fun
read
(
type
:
TypeInfo
,
body
:
Input
)
:
Any
abstract
fun
write
(
data
:
Any
,
contentType
:
ContentType
)
:
OutgoingContent
open
fun
write
(
data
:
Any
)
:
OutgoingContent
io.ktor.client.HttpClientConfig
Module Contents
fun
HttpClientConfig
<
*
>
.
Json
(
block
:
Config
.
(
)
->
Unit
)
:
Unit
package
io.ktor.client.features.json
Module Contents
class
JsonFeature
Module Contents
JsonFeature
(
serializer
:
JsonSerializer
)
class
Config
Module Contents
Config
(
)
fun
accept
(
vararg
contentTypes
:
ContentType
)
:
Unit
var
acceptContentTypes
:
List
<
ContentType
>
fun
receive
(
matcher
:
ContentTypeMatcher
)
:
Unit
var
receiveContentTypeMatchers
:
List
<
ContentTypeMatcher
>
var
serializer
:
JsonSerializer
?
companion
object
Feature
:
HttpClientFeature
<
Config
,
JsonFeature
>
Module Contents
fun
install
(
feature
:
JsonFeature
,
scope
:
HttpClient
)
:
Unit
val
key
:
AttributeKey
<
JsonFeature
>
fun
prepare
(
block
:
Config
.
(
)
->
Unit
)
:
JsonFeature
val
acceptContentTypes
:
List
<
ContentType
>
fun
install
(
feature
:
JsonFeature
,
scope
:
HttpClient
)
:
Unit
val
key
:
AttributeKey
<
JsonFeature
>
fun
prepare
(
block
:
Config
.
(
)
->
Unit
)
:
JsonFeature
val
serializer
:
JsonSerializer
interface
JsonSerializer
Module Contents
abstract
fun
read
(
type
:
TypeInfo
,
body
:
Input
)
:
Any
abstract
fun
write
(
data
:
Any
,
contentType
:
ContentType
)
:
OutgoingContent
open
fun
write
(
data
:
Any
)
:
OutgoingContent
expect
fun
defaultSerializer
(
)
:
JsonSerializer
io.ktor.client.HttpClientConfig
Module Contents
fun
HttpClientConfig
<
*
>
.
Json
(
block
:
Config
.
(
)
->
Unit
)
:
Unit