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

onPost

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

Overrides BaseResourceHandler.onPost

Handler for request of POST

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.