GoldenGateBindings / com.fitbit.goldengate.bindings.coap.data / OutgoingRequest / expectSuccess

expectSuccess

abstract val expectSuccess: Boolean

Tweaks Observable behavior and allows for custom error handling. If true (default), a non-2.xx response will error CoapEndpointResponseException the response() Observable. If false, a non-2.xx response will be reported as a next event.