Hello, does anyone know how to set ContentType to ...
# ktor
r
Hello, does anyone know how to set ContentType to application/json-patch+json ?
a
You can use the constructor of the
ContentType
class to create a custom content type. Here is an example:
Copy code
<http://client.post|client.post>("<https://httpbin.org/post>") {
    contentType(ContentType("application", "json-patch+json"))
}
2
r
Thank you