GoldenGateBindings / com.fitbit.goldengate.bindings.coap.handler / BaseResourceHandler / onGet

onGet

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

Overrides ResourceHandler.onGet

Handler for request of GET

Parameters

request - the incoming request. Examine its options to view query parameters and other metadata.

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.