class OutgoingResponseBuilder : BaseOutgoingMessageBuilder<OutgoingResponse>
Concrete class of MessageBuilder for building OutgoingResponse
OutgoingResponseBuilder()
Concrete class of MessageBuilder for building OutgoingResponse |
fun build(): OutgoingResponse
Build Coap Message |
|
fun responseCode(code: ResponseCode): OutgoingResponseBuilder
Set the ResponseCode to build a response with (e.g. 2.01, 4.04) |
open fun body(data: Data): OutgoingMessageBuilder<T> open fun body(stream: InputStream): OutgoingMessageBuilder<T>
Body of the coap message |
|
open fun option(option: Option): OutgoingMessageBuilder<T>
Add an option to coap message |
|
open fun progressObserver(progressObserver: Observer<Int>): OutgoingMessageBuilder<T>
Progress Observer of the coap message |