https://kotlinlang.org logo
#ktor
Title
# ktor
d

dave08

01/28/2019, 1:41 PM
Copy code
client.patch<Unit> {
			url("<https://api.acme.com/>")
			contentType(ContentType.Application.Json)
			headers {
				append("hdr-acc", accountId.toString())
				append("hdr-key", apiKey)
			}
			body = """{"Status":${foo.Status},"Fields":[${foo.Fields.joinToString()}]}"""
		}