content

fun content(payload: ByteArray, contentFormat: Int? = null): CoapResponse(source)

2.05 Content with payload in contentFormat.


fun content(text: String, contentFormat: Int = ContentFormat.TEXT_PLAIN): CoapResponse(source)

2.05 Content with UTF-8 text, text/plain unless another contentFormat is given.