Guys I’m trying to implement a post test but can’t...
# ktor
j
Guys I’m trying to implement a post test but can’t get body request work The documentation says we need to install content type
Copy code
val client = createClient {
        install(ContentNegotiation) {
            json()
        }
    }
but this causes a problem
Unit' can't be called in this context by implicit receiver
Does anyone knows how to solve this?
a
Can you check that you’ve imported the ContentNegotiation client plugin?
1
j
Oh yes , the had to use the Client Plugin thanks