GoldenGateBindings / com.fitbit.goldengate.bindings.coap.handler / EchoResourceHandler / onPut

onPut

fun onPut(request: IncomingRequest, responseBuilder: OutgoingResponseBuilder): Single<OutgoingResponse>

Overrides BaseResourceHandler.onPut

Handler for request of PUT

Parameters

request - the incoming request. Metadata is available in its options, and the body contains the data sent with the POST request

responseBuilder - the OutgoingResponseBuilder that should be used to construct a response.

Return
A Single that emits either an OutgoingResponse built with responseBuilder or an error. This response will be delivered to the client.