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

expectSuccess

fun expectSuccess(expect: Boolean): OutgoingRequestBuilder

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